/usr/lib/python3/dist-packages/cloudinit/net/__pycache__
Edit: /usr/lib/python3/dist-packages/cloudinit/net/__pycache__/cmdline.cpython-310.pyc (7521B)
o
th$ @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl
mZmZ dZ
dZeeZG dd de jdZG d d
d
eZegZdddZd
d ZdddZdd Zdd Zdd ZdddZdS ) N)util)get_devicelistread_sys_net_safez#/run/initramfs/open-iscsi.interfacedisabledc @ s8 e Zd ZdZejdefddZejdefddZ dS )InitramfsNetworkConfigSourcezBABC for net config sources that read config written by initramfsesreturnc C dS )zAIs this initramfs config source applicable to the current system?N selfr r 7/usr/lib/python3/dist-packages/cloudinit/net/cmdline.py
is_applicable z*InitramfsNetworkConfigSource.is_applicablec C r )z;Render a v1 network config from the initramfs configurationNr r
r r r
render_config" r z*InitramfsNetworkConfigSource.render_configN)
__name__
__module____qualname____doc__abcabstractmethodboolr
dictr r r r r r s r ) metaclassc @ s6 e Zd ZdZd
ddZdefddZdefdd ZdS )KlibcNetworkConfigSourcezInitramfsNetworkConfigSource for klibc initramfs (i.e. Debian/Ubuntu)
Has three parameters, but they are intended to make testing simpler, _not_
for use in production code. (This is indicated by the prepended
underscores.)
Nc C st || _ || _|| _| j d u rt | _ | jd u rt | _| jd u r6i | _t D ]}t|d}|r5|| j|<