AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ 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 :  /proc/thread-self/root/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 : /proc/thread-self/root/usr/share/netplan/netplan/cli/commands/__pycache__/generate.cpython-310.pyc
o

|hEc�
�@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

Anon7 - 2022
AnonSec Team