Server IP : 184.154.167.98 / Your IP : 3.145.168.68 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/cloudinit/cmd/devel/__pycache__/ |
Upload File : |
3 \�me$ � @ s� d Z ddlZddlZddlZddlZddlZddlZddlmZm Z m Z ddlmZm Z mZmZmZmZ 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_manager� network_state�networkd� sysconfig)�DataSourceAzure)� openstack)�guestcust_utilznet-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(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>G s zget_parser.<locals>.<listcomp>)r r z-mz--maczname,mac�appendzinterface name to mac mapping)r �actionr z--debug� store_truezenable debug logging to stderr.)r r z-Oz --output-kindr r r znetwork-managerz!The network config format to emit) �argparse�ArgumentParser�NAME�__doc__�add_argument�openr Z OSFAMILIES�values)�parserr r r � get_parser sZ r'