%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/net/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/net/__pycache__/netbsd.cpython-312.pyc

�

���f����ddlZddlZddlmZmZej
e�ZGd�dejjj�Zdd�Zy)�N)�subp�utilc�4��eZdZd�fd�	Zd�Zdd�Zd�Z�xZS)�Rendererc�*��tt|��y�N)�superr�__init__)�self�config�	__class__s  ��6/usr/lib/python3/dist-packages/cloudinit/net/netbsd.pyr
zRenderer.__init__s���
�h��&�(�c��|j�rA|jdd�|jddj|j���|jj	�D]l\}}t|t�s�|jd�dz|jd�z}|jd�}|r|d	|zz
}|jd
|z|��ny)N�dhcpcd�YES�dhcpcd_flags� �addressz	 netmask �netmask�mtuz mtu %d�	ifconfig_)�dhcp_interfaces�set_rc_config_value�join�interface_configurations�items�
isinstance�dict�get)r�device_name�v�
net_configrs     r�write_configzRenderer.write_configs������!��$�$�X�u�5��$�$������)=�)=�)?� @�
�#�;�;�A�A�C�	P�N�K���!�T�"��U�U�9�-��;�a�e�e�I�>N�N�
��e�e�E�l����)�c�/�1�J��(�(��{�)B�J�O�
	Prc��|stjd�ytjgd�d��|j�rtjgd�d��yy)Nz netbsd generate postcmd disabled)�service�network�restartT)�capture)r&rr()�LOG�debugrr)r�runs  r�start_serviceszRenderer.start_servicessD����I�I�8�9���	�	�3�T�B����!��I�I�6��E�"rc�4�|dk(r|jd|�yy)Nz0.0.0.0�defaultroute)r)rr'r�gateways    r�	set_routezRenderer.set_route&s���i���$�$�^�W�=� rr)F)�__name__�
__module__�__qualname__r
r$r-r1�
__classcell__)r
s@rrrs���)�P�F�>rrc�*�tj�Sr)r�	is_NetBSD)�targets r�	availabler9+s���>�>��rr)
�logging�cloudinit.net.bsd�	cloudinitrr�	getLoggerr2r*�net�bsd�BSDRendererrr9�rr�<module>rBsD���� ��g����!��>�y�}�}� � �,�,�>�@r

Zerion Mini Shell 1.0