| Server IP : 23.254.227.96 / Your IP : 216.73.216.183 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 : /usr/lib/python3.6/site-packages/cloudinit/cmd/devel/__pycache__/ |
Upload File : |
3
?q,d\ � @ s� d Z ddlZddlZddlZddlZddlmZmZmZ ddl m
Z
mZmZm
Z
mZ ddlmZ ddlmZ ddlmZ dZdd d
�Zdd� Zed
kr�e� j� Zeee� dS )z(Debug network config format conversions.� N)�distros�log�safeyaml)�eni�netplan�
network_state�networkd� sysconfig)�DataSourceAzure)�
DataSourceOVF)� openstackznet-convertc C s� | st jttd�} | jddtdddd� | jdd d
ddd
dgddd� | jdddddd� | jdddd� tjj� D �dd� | jdddddd� | jd d!d"d#� | jd$d%d
d&d'd(gdd)d� | S )*a Build or extend and arg parser for net-convert utility.
@param parser: Optional existing ArgumentParser instance representing the
subcommand which will be extended to support the args of this utility.
@returns: ArgumentParser with proper argument configuration.
)�prog�descriptionz-pz--network-data�PATHTz!The network configuration to read)�type�metavar�required�helpz-kz--kindr znetwork_data.json�yamlz
azure-imdsz
vmware-imcz&The format of the given network config)�choicesr r z-dz--directoryzdirectory to place output in)r r r z-Dz--distroc S s g | ]}|D ]}|�qqS � r )�.0Zsublist�itemr r �!/usr/lib/python3.6/net_convert.py�
<listcomp><