Server IP : 23.254.227.96 / Your IP : 216.73.216.120 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/cloudinit/sources/helpers/vmware/imc/__pycache__/ |
Upload File : |
3 ��b� � @ sT d dl mZ d dlmZmZmZ G dd� de�ZG dd� de�ZG dd� de�Zd S ) � )� BootProtoEnum)�NicBase�StaticIpv4Base�StaticIpv6Basec @ s� e Zd ZdZdd� Zdd� Zdd� Zedd � �Zed d� �Z edd � �Z edd� �Zedd� �Zedd� �Z edd� �Zedd� �ZdS )�Niczd Holds the information about each NIC specified in the customization specification file c C s || _ || _d S )N)�_name�_configFile)�self�nameZ configFile� r �/usr/lib/python3.6/nic.py�__init__ s zNic.__init__c C s | j j| jd | d �S )N�|)r �getr )r Zwhatr r r �_get s zNic._getc C s | j j| j| �S )N)r Zget_count_with_prefixr )r �prefixr r r �_get_count_with_prefix s zNic._get_count_with_prefixc C s | j S )N)r )r r r r r s zNic.namec C s | j d�j� S )NZMACADDR)r �lower)r r r r �mac s zNic.macc C s. | j d�}|r&|j� }|dkp$|dkS dS d S )NZPRIMARY�yes�trueF)r r )r �valuer r r �primary$ s zNic.primaryc C s. | j d�}|r&|j� }|dkp$|dkS dS d S )NZONBOOTr r F)r r )r r r r r �onboot- s z Nic.onbootc C s | j d�}|r|j� S dS d S )NZ BOOTPROTO� )r r )r r r r r � bootProto6 s z Nic.bootProtoc C s | j d�}|r|j� S dS d S )NZ IPv4_MODEr )r r )r r r r r � ipv4_mode>