/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__/sriov_rebind.cpython-38.pyc (1701B)
U )/b@sHdZddlZddlmmZddlmZmZmZGdddej Z dS)z"netplan SR-IOV rebind command lineN) PCIDevicebind_vfs_get_pci_slot_namecs,eZdZfddZddZddZZS)NetplanSriovRebindcstjdddddS)NZrebindzKRebind SR-IOV virtual functions of given physical functions to their driverT) command_id descriptionleaf)super__init__self __class__7/usr/share/netplan/netplan/cli/commands/sriov_rebind.pyr szNetplanSriovRebind.__init__cCs2|jjdtdgdd|j|_||dS)Nnetdevs*z*Space separated list of PF interface names)typenargsdefaulthelp)parser add_argumentstrcommand_rebindfunc parse_args run_commandr rrrrun!s zNetplanSriovRebind.runcCs\|jD]P}t|}t|}|js2td|qt|j|j }t d|t |qdS)zeBind virtual functions of SR-IOV devices to their corresponding driver after eswitch mode was changedz1{} does not seem to be a SR-IOV physical functionz{}: bound {} VFsN) rrris_pfloggingwarningformatrvfsdriverinfolen)r ifacepci_addrpcidev bound_vfsrrrr)s z!NetplanSriovRebind.command_rebind)__name__ __module__ __qualname__r rr __classcell__rrr rrs r) __doc__r netplan.cli.utilscliutilsnetplan.cli.sriovrrrNetplanCommandrrrrrs