404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.131.13.93: ~ $
# Copyright (C) 2017 Red Hat, Inc.
#
# Author: Ryan McCabe <rmccabe@redhat.com>
#
# This file is part of cloud-init. See LICENSE file for license information.

import configobj

# This module is used to set additional NetworkManager configuration
# in /etc/NetworkManager/conf.d
#


class NetworkManagerConf(configobj.ConfigObj):
    def __init__(self, contents):
        configobj.ConfigObj.__init__(
            self, contents, interpolation=False, write_empty_values=False
        )

    def set_section_keypair(self, section_name, key, value):
        if section_name not in self.sections:
            self.main[section_name] = {}
        self.main[section_name] = {key: value}

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 563 B 0644
hostname.py File 2.44 KB 0644
hosts.py File 2.69 KB 0644
ifconfig.py File 9.04 KB 0644
networkmanager_conf.py File 682 B 0644
resolv_conf.py File 5.44 KB 0644
sys_conf.py File 3.83 KB 0644