403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/system-config-network/netconfpkg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-network/netconfpkg/NCProfile.py
"Profile"
from netconfpkg.NCHostsList import HostsList
from netconfpkg.gdt import (Gdtstruct, gdtstruct_properties,
                            Gdtstr, Gdtlist, Gdtbool, gdtlist_properties)

class ActiveIPsecs(Gdtlist):
    "List of active IPsec in the Profile"
    gdtlist_properties(Gdtstr)

class DeviceId(Gdtstr):
    "Id of a Device object"

class ActiveDevices(Gdtlist):
    "List of active Devices in the Profile"
    gdtlist_properties(Gdtstr)

class Domain(Gdtstr):
    "Search Domain in a SearchList"
    
class SearchList(Gdtlist):
    "Domain search list from /etc/resolv.conf"
    gdtlist_properties(Gdtstr)

class DNS(Gdtstruct):
    "DNS setup of a profile"
    gdtstruct_properties([
                          ('Hostname', Gdtstr, "Test doc string"),
                          ('Domainname', Gdtstr, "Test doc string"),
                          ('PrimaryDNS', Gdtstr, "Test doc string"),
                          ('SecondaryDNS', Gdtstr, "Test doc string"),
                          ('TertiaryDNS', Gdtstr, "Test doc string"),
                          ('SearchList', SearchList, "Test doc string"),
                          ])
    
    def __init__(self):
        super(DNS, self).__init__()
        self.Hostname = None
        self.Domainname = None
        self.PrimaryDNS = None
        self.SecondaryDNS = None
        self.TertiaryDNS = None
        self.SearchList = SearchList()
    
class Profile(Gdtstruct):
    "Profile for s-c-network"
    gdtstruct_properties([
                          ('ProfileName', Gdtstr, "Test doc string"),
                          ('Active', Gdtbool, "Test doc string"),
                          ('ActiveDevices', ActiveDevices, "Test doc string"),
                          ('ActiveIPsecs', ActiveIPsecs, "Test doc string"),
                          ('DNS', DNS, "Test doc string"),
                          ('HostsList', HostsList, "Test doc string"),
                          ])
    def __init__(self):
        super(Profile, self).__init__()
        self.ProfileName = None
        self.Active = None
        self.DNS = DNS()
        self.ActiveDevices = ActiveDevices()
        self.ActiveIPsecs = ActiveIPsecs()
        self.HostsList = HostsList()

Youez - 2016 - github.com/yon3zu
LinuXploit