File: //usr/share/netplan/netplan/cli/commands/__pycache__/apply.cpython-38.pyc
U
��~fN � @ 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 sr e Zd Z� fdd�Zdd� Zddd �Zed
d� �Zeg fdd
��Zedd� �Z eddd��Z
eddd��Z� ZS )�NetplanApplyc s( t � jdddd� d| _d| _d | _d S )NZapplyz.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 &