404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.118.142.122: ~ $
3

\�me
�@sVddlZddlZddlmZmZmZmZeje�Z	Gdd�dejj
j�Zddd�Z
dS)�N)�distros�net�subp�utilcs@eZdZd
�fdd�	Zdd�Zdd�Zdd	d
�Zdd�Z�ZS)�RendererNcsd|_tt|�j�dS)Nr)�
_route_cpt�superr�__init__)�self�config)�	__class__��/usr/lib/python3.6/freebsd.pyr	szRenderer.__init__cCs|jd||�dS)Nzifconfig_%s_name)�set_rc_config_value)r
Zcur_name�device_namer
r
r�rename_interfaceszRenderer.rename_interfacecCs�xp|jj�D]b\}}t|t�rRd|jd�|jd�f}|jd�}|r^|d|7}n|dkr^d}|jd||�qWxb|jj�D]T\}}t|t�r�d|jd�|jd	�f}|jd�}|r�|d|7}|jd
||�q~WdS)Nzinet %s netmask %sZaddress�netmask�mtuz mtu %dZDHCPZ	ifconfig_zinet6 %s/%d�prefixzifconfig_%s_ipv6)Zinterface_configurations�items�
isinstance�dict�getrZinterface_configurations_ipv6)r
r�vZ
net_configrr
r
r�write_configs*



zRenderer.write_configFcCs�|stjd�dSx$|j�D]}tjjj|tjj	�qWt
j
dddgdd�t
j
dddgddd	gd
�x$|j�D]}tjjj|tjj	�qpWdS)Nz!freebsd generate postcmd disabledZserviceZnetifZrestartT)�captureZroutingr�)r�rcs)�LOG�debugZdhcp_interfacesrZdhcpZIscDhclientZstop_servicerZfreebsdZDistrorZ
start_service)r
ZrunZdhcp_interfacer
r
r�start_services.s
zRenderer.start_servicescCs�|dkr|jd|�nz|dkr,|jd|�ndd|j��}d|�d|�d|��}|jd	||�|j�d|��|_|jd
|jj��|jd7_dS)Nz0.0.0.0Z
defaultrouterz::Zipv6_defaultrouterrz-net z
 -netmask � Zroute_Z
static_routesr)rrZroute_names�strip)r
ZnetworkrZgatewayZ
route_nameZ	route_cmdr
r
r�	set_routeHszRenderer.set_route)N)F)	�__name__�
__module__�__qualname__r	rrr r#�
__classcell__r
r
)rrrs

rcCstj�ptj�S)N)rZ
is_FreeBSDZis_DragonFlyBSD)�targetr
r
r�	availableVsr))N)ZloggingZcloudinit.net.bsdZ	cloudinitrrrrZ	getLoggerr$rZbsdZBSDRendererrr)r
r
r
r�<module>s

K

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