%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/2082/lib/python3/dist-packages/cloudinit/net/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/2082/lib/python3/dist-packages/cloudinit/net/__pycache__/renderer.cpython-310.pyc

o

 Nhj�@sZddlZddlZddlmZddlmZddlmZdd�Zdd�Z	Gd	d
�d
ej
�ZdS)�N)�Optional)�NetworkState)�generate_udev_rulec��fdd�S)Ncs�|dkS)N�type���iface��
match_typer�8/usr/lib/python3/dist-packages/cloudinit/net/renderer.py�<lambda>sz filter_by_type.<locals>.<lambda>rr
rr
r�filter_by_type�rcr)Ncs�|vo|�S�Nrr��
match_namerrr
sz filter_by_attr.<locals>.<lambda>rrrrr�filter_by_attrrrc@sNeZdZddd�Zedefdd��Zej		ddede	e
ddfd	d
��ZdS)
�RendererNcCsdSrr)�self�configrrr�__init__szRenderer.__init__�
network_statecCs^t��}|�td��D]}d|vr*|�d�r*|�dd�}|�t|d|d|d��q|��S)z2Given state, emit udev rules to map mac to ifname.�physical�name�mac_address�driverN)r)�io�StringIO�iter_interfacesr�get�writer�getvalue)r�contentr	rrrr�_render_persistent_nets���zRenderer._render_persistent_net�	templates�returncCsdS)zRender network state.Nr)rrr%�targetrrr�render_network_state-szRenderer.render_network_stater)NN)�__name__�
__module__�__qualname__r�staticmethodrr$�abc�abstractmethodr�dictr(rrrrrs
����r)r-r�typingr�cloudinit.net.network_stater�cloudinit.net.udevrrr�ABCrrrrr�<module>s

Zerion Mini Shell 1.0