%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__/udev.cpython-312.pyc

�

�f����d�Zd�Zd�Zdd�Zy)c�<�||j�k(sJ�|�d|�d�S)z6Return a udev comparison clause, like `ACTION=="add"`.z=="�"��upper��key�values  �4/usr/lib/python3/dist-packages/cloudinit/net/udev.py�compose_udev_equalityr
s!���#�)�)�+�����e�$�$�c�>�||j�k(sJ�d|�d|�d�S)zBReturn a udev attribute comparison clause, like `ATTR{type}=="1"`.zATTR{z}=="r)�lower)�	attributers  r	�compose_udev_attr_equalityrs"���	���)�)�)�)�(�%�0�0rc�<�||j�k(sJ�|�d|�d�S)z4Return a udev assignment clause, like `NAME="eth0"`.z="rrrs  r	�compose_udev_settingrs!���#�)�)�+�����U�#�#rNc
��|sd}djtdd�tdd�td|�td|�td	|�g�}d
|zS)z�Return a udev rule to set the name of network interface with `mac`.

    The rule ends up as a single line looking something like:

    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
    ATTR{address}="ff:ee:dd:cc:bb:aa", NAME="eth0"
    z?*z, �	SUBSYSTEM�net�ACTION�add�DRIVERS�address�NAMEz%s
)�joinr
rr)�	interface�mac�driver�rules    r	�generate_udev_rulers]������9�9�!�+�u�5�!�(�E�2�!�)�V�4�&�y�#�6� ���3�	
��D��D�=�r)N)r
rrr�rr	�<module>r!s��%�1�$�r

Zerion Mini Shell 1.0