Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Working directory: /opt/noc
- <type 'exceptions.TypeError'>
- string indices must be integers, not str
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/jobs/rep_discovery.py (Line: 34)
- Function: process_result
- 27 def process_result(self, object, result):
- 28 first_mac, last_mac = self.get_object_macs(object)
- 29 if not first_mac or not last_mac:
- 30 return # ID discovery is incomplete
- 31 for segment in result:
- 32 # Find own ports
- 33 o = [i for i, p in enumerate(segment)
- 34 ==> if first_mac <= p["mac"] <= last_mac]
- 35 if not o:
- 36 continue # Not found
- 37 elif len(o) == 2:
- 38 # Inside the ring
- 39 self.submit_pair(object,
- 40 segment[o[0]], segment[o[0] - 1])
- Variables:
- i = 0
- self = <noc.inv.discovery.jobs.rep_discovery.REPLinkDiscoveryJob object at 0x807c45250>
- object = <ManagedObject: cat-r23>
- p = 'segment'
- result = [{'segment': 73, 'topology': [{'edge_no_neighbor': True, ...
- last_mac = u'68:BD:AB:AA:16:80'
- first_mac = u'68:BD:AB:AA:16:80'
- segment = {'segment': 73, 'topology': [{'edge_no_neighbor': True, ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement