File manager - Edit - /usr/share/netplan/netplan/cli/commands/__pycache__/apply.cpython-310.pyc
Back
o � ed�O � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m mZ ddlm Z mZ ddlmZ ddlmZmZ dZdZG dd � d ej�ZdS ) znetplan apply command line� N)� ConfigManager�ConfigurationError)�apply_sriov_config)�OvsDbServerNotRunning�apply_ovs_cleanupznetplan-ovs-cleanup.service� c 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 �run4 s � ��zNetplanApply.runTFNc &