Exemplo n.º 1
0
 def collectData(self, equipment, proxy):
     proxy.version = 1       # Use SNMPv1
     ports = PortCollector(equipment, proxy)
     fdb = FdbCollector(equipment, proxy, self.config,
                        lambda x: self.normport(x, ports))
     fdb2 = QFdbCollector(equipment, proxy, self.config,
                          lambda x: self.normport(x, ports))
     arp = ArpCollector(equipment, proxy, self.config)
     lldp = LldpCollector(equipment, proxy,
                          lambda x: self.normport(x, ports))
     speed = LldpSpeedCollector(equipment, proxy,
                                lambda x: self.normport(x, ports))
     vlan1 = Rfc2674VlanCollector(equipment, proxy,
                                  normPort=lambda x: self.normport(x, ports))
     vlan2 = IfMibVlanCollector(equipment, proxy,
                                normPort=lambda x: self.normport(x, ports))
     d = ports.collectData()
     d.addCallback(lambda x: fdb.collectData())
     d.addCallback(lambda x: fdb2.collectData())
     d.addCallback(lambda x: arp.collectData())
     d.addCallback(lambda x: lldp.collectData())
     d.addCallback(lambda x: speed.collectData())
     d.addCallback(lambda x: vlan1.collectData())
     d.addCallback(lambda x: vlan2.collectData())
     return d
Exemplo n.º 2
0
 def collectData(self, equipment, proxy):
     proxy.version = 1  # Use SNMPv1
     ports = PortCollector(equipment, proxy)
     fdb = FdbCollector(equipment, proxy, self.config,
                        lambda x: self.normport(x, ports))
     fdb2 = QFdbCollector(equipment, proxy, self.config,
                          lambda x: self.normport(x, ports))
     arp = ArpCollector(equipment, proxy, self.config)
     lldp = LldpCollector(equipment, proxy,
                          lambda x: self.normport(x, ports))
     speed = LldpSpeedCollector(equipment, proxy,
                                lambda x: self.normport(x, ports))
     vlan1 = Rfc2674VlanCollector(
         equipment, proxy, normPort=lambda x: self.normport(x, ports))
     vlan2 = IfMibVlanCollector(equipment,
                                proxy,
                                normPort=lambda x: self.normport(x, ports))
     d = ports.collectData()
     d.addCallback(lambda x: fdb.collectData())
     d.addCallback(lambda x: fdb2.collectData())
     d.addCallback(lambda x: arp.collectData())
     d.addCallback(lambda x: lldp.collectData())
     d.addCallback(lambda x: speed.collectData())
     d.addCallback(lambda x: vlan1.collectData())
     d.addCallback(lambda x: vlan2.collectData())
     return d
Exemplo n.º 3
0
 def collectData(self, equipment, proxy):
     ports = PortCollector(equipment, proxy, descrs="ifName", names="ifAlias")
     speed = LldpSpeedCollector(equipment, proxy)
     fdb1 = FdbCollector(equipment, proxy, self.config)
     fdb2 = QFdbCollector(equipment, proxy, self.config)
     arp = ArpCollector(equipment, proxy, self.config)
     lldp = LldpCollector(equipment, proxy)
     vlan = Rfc2674VlanCollector(equipment, proxy)
     d = ports.collectData()
     d.addCallback(lambda x: speed.collectData())
     d.addCallback(lambda x: fdb1.collectData())
     d.addCallback(lambda x: fdb2.collectData())
     d.addCallback(lambda x: arp.collectData())
     d.addCallback(lambda x: lldp.collectData())
     d.addCallback(lambda x: vlan.collectData())
     return d
Exemplo n.º 4
0
 def collectData(self, equipment, proxy):
     ports = PortCollector(equipment,
                           proxy,
                           descrs="ifName",
                           names="ifAlias")
     speed = LldpSpeedCollector(equipment, proxy)
     fdb1 = FdbCollector(equipment, proxy, self.config)
     fdb2 = QFdbCollector(equipment, proxy, self.config)
     arp = ArpCollector(equipment, proxy, self.config)
     lldp = LldpCollector(equipment, proxy)
     vlan = Rfc2674VlanCollector(equipment, proxy)
     d = ports.collectData()
     d.addCallback(lambda x: speed.collectData())
     d.addCallback(lambda x: fdb1.collectData())
     d.addCallback(lambda x: fdb2.collectData())
     d.addCallback(lambda x: arp.collectData())
     d.addCallback(lambda x: lldp.collectData())
     d.addCallback(lambda x: vlan.collectData())
     return d