File "net_convert.cpython-36.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/usr/lib/python3.6/site-packages/cloudinit/cmd/devel/__pycache__/net_convert.cpython-36.pyc
File size: 4.15 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
3
\me$ @ s d Z ddlZddlZddlZddlZddlZddlZddlmZm Z m
Z
ddlmZm
Z
mZmZmZmZ ddlmZ ddlmZ ddlmZ dZdd d
Zdd Zed
kre j Zeee dS )z(Debug network config format conversions. N)distroslogsafeyaml)eninetplannetwork_manager
network_statenetworkd 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.
)progdescriptionz-pz--network-dataPATHTz!The network configuration to read)typemetavarrequiredhelpz-kz--kindr znetwork_data.jsonyamlz
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 ).0Zsublistitemr r !/usr/lib/python3.6/net_convert.py
<listcomp>G s zget_parser.<locals>.<listcomp>)r r z-mz--maczname,macappendzinterface 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) argparseArgumentParserNAME__doc__add_argumentopenr Z
OSFAMILIESvalues)parserr r r
get_parser sZ r'