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)
def __init__(self, ip, dbpool, collector): self.dbpool = dbpool self.ip = ip self.collector = collector JsonPage.__init__(self)
def __init__(self, ip, dbpool): self.dbpool = dbpool self.ip = ip JsonPage.__init__(self)
def __init__(self, ip, index, dbpool): self.dbpool = dbpool self.ip = ip self.index = index JsonPage.__init__(self)
def __init__(self, dbpool, vlan): self.vlan = vlan self.dbpool = dbpool JsonPage.__init__(self)
def __init__(self, dbpool, name): self.name = name self.dbpool = dbpool JsonPage.__init__(self)
def __init__(self, dbpool, ip): self.ip = ip self.dbpool = dbpool JsonPage.__init__(self)
def __init__(self, dbpool, mac): self.mac = mac self.dbpool = dbpool JsonPage.__init__(self)