404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.222.108.185: ~ $
3

\�me�	�@sZddlZddlZddlZddlmZmZmZeje�Z	Gdd�dejj
j�Zddd�Z
dS)�N)�net�subp�utilc@s&eZdZdd�Zd	dd�Zdd�ZdS)
�RenderercCs�x�|jj�D]�\}}dj|�}tj|j|�}||j�kr>d}nnt|t�r�ydj|d|dd�}Wn t	k
r�t
jd|�YnX|jd�}|r�|d	|7}|d
|j
7}tj||�qWdS)Nzetc/hostname.{}zdhcp
zinet {address} {netmask}�address�netmask)rrz#Invalid static configuration for %s�mtuz mtu %d�
)Zinterface_configurations�items�formatr�target_path�target�dhcp_interfaces�
isinstance�dict�KeyError�LOG�error�get�interface_routesr�
write_file)�selfZdevice_name�v�if_file�fn�contentr�r�/usr/lib/python3.6/openbsd.py�write_config
s"


zRenderer.write_configFcCs�tttj�jd�d�dk�}|js2tjd�dS|rrtjddgdd�xz|j	�D]}tjd	d
d|gdd�qRWnRt
jjj
�tjdd
dgdddgd�tjdddgdddgd�tjddgdd�dS)N�.r�z!openbsd generate postcmd disabledZshz
/etc/netstartT)�captureZdhcpleasectlz-wZ30Zroute�del�default�)r!�rcs�flush)�bool�int�platform�release�splitZ	_postcmdsr�debugrrrZdhcpZIscDhclientZkill_dhcp_client)rZrunZhas_dhcpleasectlZ	interfacerrr�start_services"s
zRenderer.start_servicescCsX|dkr0d}tj|j|�}|d}tj||�n$|jd|d|d|d|_dS)Nz0.0.0.0z
etc/mygater	z!route add z
 -netmask � )rrr
rrr)rZnetworkrZgatewayrrrrrr�	set_route3s
zRenderer.set_routeN)F)�__name__�
__module__�__qualname__rr-r/rrrrrs
rcCstj�S)N)rZ
is_OpenBSD)r
rrr�	availableFsr3)N)Zloggingr)Zcloudinit.net.bsdZ	cloudinitrrrZ	getLoggerr0rZbsdZBSDRendererrr3rrrr�<module>s
:

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 33.43 KB 0644
__init__.cpython-36.pyc File 33.43 KB 0644
activators.cpython-36.opt-1.pyc File 9.52 KB 0644
activators.cpython-36.pyc File 9.52 KB 0644
bsd.cpython-36.opt-1.pyc File 5.74 KB 0644
bsd.cpython-36.pyc File 5.74 KB 0644
cmdline.cpython-36.opt-1.pyc File 7.2 KB 0644
cmdline.cpython-36.pyc File 7.2 KB 0644
dhcp.cpython-36.opt-1.pyc File 15.98 KB 0644
dhcp.cpython-36.pyc File 15.98 KB 0644
eni.cpython-36.opt-1.pyc File 12.89 KB 0644
eni.cpython-36.pyc File 12.89 KB 0644
ephemeral.cpython-36.opt-1.pyc File 10.51 KB 0644
ephemeral.cpython-36.pyc File 10.51 KB 0644
freebsd.cpython-36.opt-1.pyc File 2.54 KB 0644
freebsd.cpython-36.pyc File 2.54 KB 0644
netbsd.cpython-36.opt-1.pyc File 1.69 KB 0644
netbsd.cpython-36.pyc File 1.69 KB 0644
netplan.cpython-36.opt-1.pyc File 11.91 KB 0644
netplan.cpython-36.pyc File 11.91 KB 0644
network_manager.cpython-36.opt-1.pyc File 12.83 KB 0644
network_manager.cpython-36.pyc File 12.83 KB 0644
network_state.cpython-36.opt-1.pyc File 27.57 KB 0644
network_state.cpython-36.pyc File 27.57 KB 0644
networkd.cpython-36.opt-1.pyc File 8.21 KB 0644
networkd.cpython-36.pyc File 8.21 KB 0644
openbsd.cpython-36.opt-1.pyc File 2.18 KB 0644
openbsd.cpython-36.pyc File 2.18 KB 0644
renderer.cpython-36.opt-1.pyc File 1.82 KB 0644
renderer.cpython-36.pyc File 1.82 KB 0644
renderers.cpython-36.opt-1.pyc File 1.53 KB 0644
renderers.cpython-36.pyc File 1.53 KB 0644
sysconfig.cpython-36.opt-1.pyc File 23.07 KB 0644
sysconfig.cpython-36.pyc File 23.07 KB 0644
udev.cpython-36.opt-1.pyc File 1.22 KB 0644
udev.cpython-36.pyc File 1.31 KB 0644