PHP WebShell

Текущая директория: /usr/lib/python3/dist-packages/cloudinit/sources/helpers/vmware/imc/__pycache__

Просмотр файла: nic_base.cpython-310.pyc

o

x[h�@s.Gdd�d�ZGdd�d�ZGdd�d�ZdS)c@sleZdZdZedd��Zedd��Zedd��Zedd	��Zed
d��Z	edd
��Z
edd��Zdd�ZdS)�NicBasez{
    Define what are expected of each nic.
    The following properties should be provided in an implementation class.
    cC�td��)zb
        Retrieves the mac address of the nic
        @return (str) : the MACADDR setting
        �MACADDR��NotImplementedError��self�r�O/usr/lib/python3/dist-packages/cloudinit/sources/helpers/vmware/imc/nic_base.py�mac�zNicBase.maccCr)a
        Retrieves whether the nic is the primary nic
        Indicates whether NIC will be used to define the default gateway.
        If none of the NICs is configured to be primary, default gateway won't
        be set.
        @return (bool): the PRIMARY setting
        �PRIMARYrrrrr	�primarys	zNicBase.primarycCr)zu
        Retrieves whether the nic should be up at the boot time
        @return (bool) : the ONBOOT setting
        �ONBOOTrrrrr	�onboot"rzNicBase.onbootcCr)z�
        Retrieves the boot protocol of the nic
        @return (str): the BOOTPROTO setting, valid values: dhcp and static.
        �	BOOTPROTOrrrrr	�	bootProto*rzNicBase.bootProtocCr)z�
        Retrieves the IPv4_MODE
        @return (str): the IPv4_MODE setting, valid values:
        backwards_compatible, static, dhcp, disabled, as_is
        �	IPv4_MODErrrrr	�	ipv4_mode2szNicBase.ipv4_modecCr)z�
        Retrieves the static IPv4 configuration of the nic
        @return (StaticIpv4Base list): the static ipv4 setting
        zStatic IPv4rrrrr	�
staticIpv4;rzNicBase.staticIpv4cCr)z|
        Retrieves the IPv6 configuration of the nic
        @return (StaticIpv6Base list): the static ipv6 setting
        zStatic Ipv6rrrrr	�
staticIpv6CrzNicBase.staticIpv6cCr)z�
        Validate the object
        For example, the staticIpv4 property is required and should not be
        empty when ipv4Mode is STATIC
        zCheck constraints on propertiesrrrrr	�validateKrzNicBase.validateN)
�__name__�
__module__�__qualname__�__doc__�propertyr
r
rrrrrrrrrr	r	s"







rc@�4eZdZdZedd��Zedd��Zedd��ZdS)	�StaticIpv4Basez�
    Define what are expected of a static IPv4 setting
    The following properties should be provided in an implementation class.
    cCr)zV
        Retrieves the Ipv4 address
        @return (str): the IPADDR setting
        zIpv4 Addressrrrrr	�ipZrzStaticIpv4Base.ipcCr)z_
        Retrieves the Ipv4 NETMASK setting
        @return (str): the NETMASK setting
        zIpv4 NETMASKrrrrr	�netmaskbrzStaticIpv4Base.netmaskcCr)zl
        Retrieves the gateways on this Ipv4 subnet
        @return (str list): the GATEWAY setting
        zIpv4 GATEWAYrrrrr	�gatewaysjrzStaticIpv4Base.gatewaysN)rrrrrrrr rrrr	rTs

rc@r)	�StaticIpv6Basez�Define what are expected of a static IPv6 setting
    The following properties should be provided in an implementation class.
    cCr)zX
        Retrieves the Ipv6 address
        @return (str): the IPv6ADDR setting
        zIpv6 Addressrrrrr	rxrzStaticIpv6Base.ipcCr)zc
        Retrieves the Ipv6 NETMASK setting
        @return (str): the IPv6NETMASK setting
        zIpv6 NETMASKrrrrr	r�rzStaticIpv6Base.netmaskcCr)zc
        Retrieves the Ipv6 GATEWAY setting
        @return (str): the IPv6GATEWAY setting
        zIpv6 GATEWAYrrrrr	�gateway�rzStaticIpv6Base.gatewayN)rrrrrrrr"rrrr	r!ss

r!N)rrr!rrrr	�<module>sK

Выполнить команду


Для локальной разработки. Не используйте в интернете!