| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.6/site-packages/cloudinit/net/__pycache__/ |
Upload File : |
3
��b+$ � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z ddl
mZmZ dZ
dZG dd� de jd �ZG d
d� de�ZegZddd
�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 �/usr/lib/python3.6/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 st || _ || _|| _| j d kr$t� | _ | jd kr8tj� | _| jd krpi | _x&t� D ]}t|d�}|rP|| j|<