403Webshell
Server IP : 94.16.115.136  /  Your IP : 216.73.217.106
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux rogerrabbit 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64
User : bkillingseder ( 1001)
PHP Version : 8.1.2-1ubuntu2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/core22/current/usr/lib/python3/dist-packages/cloudinit/net/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/core22/current/usr/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