File: //usr/lib/python3/dist-packages/cloudinit/net/__pycache__/cmdline.cpython-39.pyc
a
��`�# � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ ddl m
Z
ddl mZ dZdZ
G dd � d e jd
�ZG dd� de�ZegZdd
d�Zdd� Zddd�Zdd� Zdd� Zdd� Zddd�ZdS )� N)�util� )�get_devicelist)�read_sys_net_safez#/run/initramfs/open-iscsi.interface�disabledc @ s8 e Zd ZdZejed�dd��Zejed�dd��Z dS )�InitramfsNetworkConfigSourcezBABC for net config sources that read config written by initramfses��returnc C s 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 s z*InitramfsNetworkConfigSource.is_applicablec C s dS )z;Render a v1 network config from the initramfs configurationNr
r r
r
r
�
render_config! s z*InitramfsNetworkConfigSource.render_configN)
�__name__�
__module__�__qualname__�__doc__�abc�abstractmethod�boolr �dictr r
r
r
r
r s
r )� metaclassc @ s6 e Zd ZdZd
dd�Zed�dd�Zed�dd �ZdS )�KlibcNetworkConfigSourcez�InitramfsNetworkConfigSource 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 sp || _ || _|| _| j d u r$t� | _ | jd u r8t�� | _| jd u rli | _t� D ]}t|d�}|rN|| j|<