/usr/share/netplan/netplan/cli/commands/__pycache__
Edit: /usr/share/netplan/netplan/cli/commands/__pycache__/sriov_rebind.cpython-38.pyc (1701B)
U
)/b @ sH d Z ddlZddlm mZ ddlmZmZmZ G dd dej Z
dS )z"netplan SR-IOV rebind command line N) PCIDevicebind_vfs_get_pci_slot_namec s, e Zd Z fddZdd Zdd Z ZS )NetplanSriovRebindc s t jdddd d S )NZrebindzKRebind SR-IOV virtual functions of given physical functions to their driverT)
command_iddescriptionleaf)super__init__self __class__ 7/usr/share/netplan/netplan/cli/commands/sriov_rebind.pyr
s zNetplanSriovRebind.__init__c C s2 | j jdtdg dd | j| _| | d S )Nnetdevs*z*Space separated list of PF interface names)typenargsdefaulthelp)parseradd_argumentstrcommand_rebindfunc
parse_argsrun_commandr r r r run! s zNetplanSriovRebind.runc C s\ | j D ]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)r r r is_pfloggingwarningformatr vfsdriverinfolen)r ifacepci_addrpcidev bound_vfsr r r r ) s
z!NetplanSriovRebind.command_rebind)__name__
__module____qualname__r
r r
__classcell__r r r
r r s r )__doc__r netplan.cli.utilscliutilsnetplan.cli.sriovr r r NetplanCommandr r r r r
s