File manager - Edit - /usr/lib/python3/dist-packages/cloudinit/net/__pycache__/cmdline.cpython-310.pyc
Back
o �Ad6$ � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl mZmZ dZ dZG dd� de jd�ZG d d � d e�ZegZddd�Zd d� Zddd�Zdd� Zdd� Zdd� Zddd�ZdS )� N)�util)�get_devicelist�read_sys_net_safez#/run/initramfs/open-iscsi.interface�disabledc @ s8 e Zd ZdZejdefdd��Zejdefdd��Z dS )�InitramfsNetworkConfigSourcezBABC for net config sources that read config written by initramfses�returnc 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__�abc�abstractmethod�boolr �dictr r r r r r s r )� metaclassc @ s6 e Zd ZdZd dd�Zdefdd�Zdefdd �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 st || _ || _|| _| j d u rt� | _ | jd u rt�� | _| jd u r6i | _t� D ]}t|d�}|r5|| j|<