403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/netplan/netplan/cli/commands/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�
ed�
�@sTdZddlZddlZddlZddlZddlZddlmmZGdd�dej	�Z
dS)znetplan generate command line�Ncs,eZdZ�fdd�Zdd�Zdd�Z�ZS)�NetplanGeneratecst�jdddd�dS)N�generatezFGenerate backend specific configuration files from /etc/netplan/*.yamlT)�
command_id�description�leaf)�super�__init__��self��	__class__��3/usr/share/netplan/netplan/cli/commands/generate.pyrs
�zNetplanGenerate.__init__cCs<|jjddd�|jjddd�|j|_|��|��dS)N�
--root-dirzOSearch for and generate configuration files in this root directory instead of /)�help�	--mappingzFDisplay the netplan device ID/backend/interface name mapping and exit.)�parser�add_argument�command_generate�func�
parse_args�run_commandr	r
r
r�run%s��zNetplanGenerate.runc
Cs�dtjvr3t�d�}|durtd��t�|ddddddd	g�}|d
kr1|dkr+td��td
|��dSt�	�g}|j
rB|d|j
g7}|jrL|d|jg7}t�
d|�t�t�|��dS)N�SNAP�busctlzmissing busctl utility�callz--quietz--systemzio.netplan.Netplanz/io/netplan/Netplan�Generater�z'failed to communicate with dbus servicez1failed to communicate with dbus service: error %srrzcommand generate: running %s)�os�environ�shutil�which�RuntimeError�
subprocessr�PermissionError�utils�get_generator_path�root_dir�mapping�logging�debug�sys�exit)r
r�res�argvr
r
rr0s4

���
z NetplanGenerate.command_generate)�__name__�
__module__�__qualname__rrr�
__classcell__r
r
rrrsr)�__doc__r)rr+r#r �netplan.cli.utils�clir%�NetplanCommandrr
r
r
r�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit