Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ 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 : /proc/thread-self/root/usr/share/netplan/netplan/cli/commands/__pycache__/ |
Upload File : |
o |hEc"M � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m mZ ddlm Z mZ ddlmZ ddlmZ dZG dd� dej�ZdS ) znetplan apply command line� N)� ConfigManager�ConfigurationError)�apply_sriov_config)�apply_ovs_cleanupznetplan-ovs-cleanup.servicec sx e Zd Z� fdd�Zdd� Zddd �Zed d� �Zeg fdd ��Zede fdd��Z eddd��Zeddd��Z� Z S )�NetplanApplyc s( t � jdddd� d| _d| _d | _d S )N�applyz.Apply current netplan config to running systemT)� command_id�description�leafF)�super�__init__� sriov_only�only_ovs_cleanup�state��self�� __class__� �0/usr/share/netplan/netplan/cli/commands/apply.pyr * s � zNetplanApply.__init__c C sP | j jdddd� | j jdddd� | j jddd � | j| _| �� | �� d S ) Nz--sriov-only� store_truez0Only apply SR-IOV related configuration and exit)�action�helpz--only-ovs-cleanupz1Only clean up old OpenVSwitch interfaces and exitz--statez0Directory containing previous YAML configuration)r )�parser�add_argument� command_apply�func� parse_args�run_commandr r r r �run2 s � ��zNetplanApply.runTFNc &