HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/usr/lib/python3/dist-packages/cloudinit/net/__pycache__/
Upload File :
Current File : //proc/1784574/root/usr/lib/python3/dist-packages/cloudinit/net/__pycache__/udev.cpython-311.pyc
�

܍~c��� �d�Zd�Zd�Zdd�ZdS)c�F�||���ksJ�|�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�e�e�$�$�c�H�||���ksJ�d|�d|�d�S)zBReturn a udev attribute comparison clause, like `ATTR{type}=="1"`.zATTR{z}=="r)�lower)�	attributers  r	�compose_udev_attr_equalityrs3���	���)�)�)�)�)�)�)�(�y�y�%�%�%�0�0rc�F�||���ksJ�|�d|�d�S)z4Return a udev assignment clause, like `NAME="eth0"`.z="rrrs  r	�compose_udev_settingrs.���#�)�)�+�+��������U�U�U�#�#rNc
���|sd}d�tdd��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_rulersv�������9�9�!�+�u�5�5�!�(�E�2�2�!�)�V�4�4�&�y�#�6�6� ���3�3�	
���D��D�=�r)N)r
rrr�rr	�<module>r!sP��%�%�%�1�1�1�$�$�$������r