/usr/share/netplan/netplan/cli/commands/__pycache__
NameSizeModeActions
apply.cpython-38.pyc91460644editdlrm
generate.cpython-38.pyc20170644editdlrm
get.cpython-38.pyc22130644editdlrm
info.cpython-38.pyc17510644editdlrm
ip.cpython-38.pyc46330644editdlrm
migrate.cpython-38.pyc106360644editdlrm
set.cpython-38.pyc55720644editdlrm
sriov_rebind.cpython-38.pyc17010644editdlrm
try_command.cpython-38.pyc58770644editdlrm
__init__.cpython-38.pyc8160644editdlrm
Edit: /usr/share/netplan/netplan/cli/commands/__pycache__/generate.cpython-38.pyc (2017B)
U )/b @sTdZddlZddlZddlZddlZddlZddlmmZGdddej Z dS)znetplan generate command lineNcs,eZdZfddZddZddZZS)NetplanGeneratecstjdddddS)NZgeneratezFGenerate backend specific configuration files from /etc/netplan/*.yamlT) command_id descriptionleaf)super__init__self __class__3/usr/share/netplan/netplan/cli/commands/generate.pyrszNetplanGenerate.__init__cCs<|jjddd|jjddd|j|_||dS)N --root-dirzOSearch for and generate configuration files in this root directory instead of /)help --mappingzFDisplay the netplan device ID/backend/interface name mapping and exit.)parser add_argumentcommand_generatefunc parse_args run_commandrr r r run%szNetplanGenerate.runc Csdtjkrjtd}|dkr$tdt|ddddddd g}|d krf|d krXtd qjtd |ndSt g}|j r|d|j g7}|j r|d|j g7}t d|tt|dS)NSNAPbusctlzmissing busctl utilitycallz--quietz--systemzio.netplan.Netplanz/io/netplan/NetplanZGeneraterz'failed to communicate with dbus servicez1failed to communicate with dbus service: error %srrzcommand generate: running %s)osenvironshutilwhich RuntimeError subprocessrPermissionErrorutilsget_generator_pathroot_dirmappingloggingdebugsysexit)r rresargvr r r r0s4     z NetplanGenerate.command_generate)__name__ __module__ __qualname__rrr __classcell__r r r r rs  r) __doc__r'rr)r!rnetplan.cli.utilsclir#NetplanCommandrr r r r s