Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/cloudinit/sources/helpers/vmware/imc/__pycache__/ |
Upload File : |
o x[h� � @ 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 � || _ || _d S �N)�_name�_configFile)�self�name� configFile� r �J/usr/lib/python3/dist-packages/cloudinit/sources/helpers/vmware/imc/nic.py�__init__ � zNic.__init__c C s | j �| jd | d �S )N�|)r �getr )r �whatr r r �_get s zNic._getc C s | j �| j| �S r )r �get_count_with_prefixr )r �prefixr r r �_get_count_with_prefix s zNic._get_count_with_prefixc C s | j S r )r �r r r r r s zNic.namec C s | � d��� S )N�MACADDR�r �lowerr r r r �mac$ s zNic.macc C �* | � d�}|r|�� }|dkp|dkS dS )N�PRIMARY�yes�trueFr �r �valuer r r �primary( � zNic.primaryc C r )N�ONBOOTr r! Fr r"