Пример #1
0
 def __init__(self, dbpool, mac):
     # Try to normalize MAC address: 0:12:2a:3: becomes 00:12:2a:03:
     # and 0:12:2a:3 becomes 00:12:2a:3
     self.mac = ":".join([len(x) and "%2s" % x or ""
                          for x in mac.split(":")[:-1]] +
                         [mac.split(":")[-1]]).replace(" ","0")
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #2
0
 def __init__(self, ip, dbpool, collector):
     self.dbpool = dbpool
     self.ip = ip
     self.collector = collector
     JsonPage.__init__(self)
Пример #3
0
 def __init__(self, ip, dbpool):
     self.dbpool = dbpool
     self.ip = ip
     JsonPage.__init__(self)
Пример #4
0
 def __init__(self, ip, index, dbpool):
     self.dbpool = dbpool
     self.ip = ip
     self.index = index
     JsonPage.__init__(self)
Пример #5
0
 def __init__(self, dbpool, vlan):
     self.vlan = vlan
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #6
0
 def __init__(self, dbpool, name):
     self.name = name
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #7
0
 def __init__(self, dbpool, ip):
     self.ip = ip
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #8
0
 def __init__(self, dbpool, mac):
     self.mac = mac
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #9
0
 def __init__(self, dbpool, vlan):
     self.vlan = vlan
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #10
0
 def __init__(self, dbpool, name):
     self.name = name
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #11
0
 def __init__(self, dbpool, ip):
     self.ip = ip
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #12
0
 def __init__(self, dbpool, mac):
     self.mac = mac
     self.dbpool = dbpool
     JsonPage.__init__(self)
Пример #13
0
 def __init__(self, ip, dbpool, collector):
     self.dbpool = dbpool
     self.ip = ip
     self.collector = collector
     JsonPage.__init__(self)
Пример #14
0
 def __init__(self, ip, dbpool):
     self.dbpool = dbpool
     self.ip = ip
     JsonPage.__init__(self)
Пример #15
0
 def __init__(self, ip, index, dbpool):
     self.dbpool = dbpool
     self.ip = ip
     self.index = index
     JsonPage.__init__(self)