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 | : 18.222.168.73
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 : renderer.py
# Copyright (C) 2013-2014 Canonical Ltd. # # Author: Scott Moser <scott.moser@canonical.com> # Author: Blake Rouse <blake.rouse@canonical.com> # # This file is part of cloud-init. See LICENSE file for license information. import abc import six from .network_state import parse_net_config_data from .udev import generate_udev_rule def filter_by_type(match_type): return lambda iface: match_type == iface['type'] def filter_by_name(match_name): return lambda iface: match_name == iface['name'] def filter_by_attr(match_name): return lambda iface: (match_name in iface and iface[match_name]) filter_by_physical = filter_by_type('physical') class Renderer(object): @staticmethod def _render_persistent_net(network_state): """Given state, emit udev rules to map mac to ifname.""" # TODO(harlowja): this seems shared between eni renderer and # this, so move it to a shared location. content = six.StringIO() for iface in network_state.iter_interfaces(filter_by_physical): # for physical interfaces write out a persist net udev rule if 'name' in iface and iface.get('mac_address'): driver = iface.get('driver', None) content.write(generate_udev_rule(iface['name'], iface['mac_address'], driver=driver)) return content.getvalue() @abc.abstractmethod def render_network_state(self, network_state, templates=None, target=None): """Render network state.""" def render_network_config(self, network_config, templates=None, target=None): return self.render_network_state( network_state=parse_net_config_data(network_config), templates=templates, target=target) # vi: ts=4 expandtab
Close