Advertisement
Guest User

Untitled

a guest
Jan 18th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. (dp1
  2. S'component'
  3. p2
  4. S'noc-discovery'
  5. p3
  6. sS'source'
  7. p4
  8. S'system'
  9. p5
  10. sS'traceback'
  11. p6
  12. VUNHANDLED EXCEPTION (2013-01-18 10:47:43.999933)\u000aWorking directory: /opt/noc\u000a<type 'exceptions.AttributeError'>\u000a'Interface' object has no attr
  13. ibute 'subinterfaces_set'\u000aSTART OF TRACEBACK\u000a------------------------------------------------------------------------\u000aFile: /opt/noc/inv/discov
  14. ery/jobs/mac_discovery.py (Line: 152)\u000aFunction: check_port\u000a 145 remote_iface = interfaces[0]\u000a 146 if remote_iface.is_
  15. linked:\u000a 147 return # Remote interface is already linked\u000a 148 remote_subs = list(remote_iface.subinterface_set.filter
  16. (\u000a 149 enabled_afi__in=["IPv4", "IPv6"], mac=mac))\u000a 150 if not remote_subs:\u000a 151 return # Canno
  17. t find remote sub by MAC\u000a 152 ==> local_sub = iface.subinterface_set.filter(enabled_afi="BRIDGE").first()\u000a 153 if not local_su
  18. b:\u000a 154 return # Something goes wrong\u000a 155 if not local_sub.tagged_vlans:\u000a 156 if len(remote_su
  19. bs) == 1:\u000a 157 # Access port to L3 interface\u000a 158 self.submit_link(iface, remote_iface)\u000aVariables:\u0
  20. 00a iface = <Interface: cct01-med-ltc: Gi 1/0/2>\u000a remote_subs = [<SubInterface: crt01-med-ltc Fa 0/0.61>, <SubInterface: crt01-med-
  21. ltc Fa 0/0.78>, <SubInterface: crt01-med-ltc Fa 0/0.150>]\u000a remote_iface = <Interface: crt01-med-ltc: Fa 0/0>\u000a interfaces = [<Interfa
  22. ce: crt01-med-ltc: Fa 0/0>]\u000a object = <ManagedObject: cct01-med-ltc>\u000a self = <noc.inv.discovery.jobs.mac_discovery.MACDi
  23. scoveryJob object at 0x37d0410>\u000a mac = '00:0C:CE:59:AF:60'\u000a vlans = [150]\u000a port = 'Gi 1/0/2'\u000a
  24. ------------------------------------------------------------------------\u000aFile: /opt/noc/inv/discovery/jobs/mac_discovery.py (Line: 80)\u000aFunction: han
  25. dler\u000a 73 mh = defaultdict(int)\u000a 74 for p, m in pmc:\u000a 75 mh[m] += 1\u000a 76 # Check
  26. all unique MACs\u000a 77 for port, mac in pmc:\u000a 78 if mh[mac] == 1:\u000a 79 self.check_port(objec
  27. t, port, mac,\u000a 80 ==> [vlan for vlan, mac in port_macs[port]])\u000a 81 return True\u000a 82 \u000a 83
  28. @classmethod\u000a 84 def initial_submit_queryset(cls):\u000a 85 return {"object_profile__enable_mac_discovery": True}\u000a 86
  29. \u000aVariables:\u000a iface = 'Gi 1/0/6'\u000a port_macs = defaultdict(<type 'set'>, {'Gi 1/0/14': set([(601, '00:E0:FC:CF:B2:28')]
  30. ), 'Gi 1/0/16': set([(600, '00:E0:FC:CF:B2:2B')]), 'Gi 1/0/11': set([(896, '00:1F:A4:50:EE:62'), (896, '00:1F:A4:36:43:28'), (896, '00:1F:A4:51:4A:D3'), (896,
  31. '1C:7E:E5:0C:76:8A'), (2074, '00:22:56:AB:2C:42'), (601, '00:E0:FC:DB:E1:19'), (2073, '00:18:82:81:57:24'), (600, '00:E0:FC:DB:E1:19'), (896, '00:1F:A4:A9:AE
  32. :79'), (896, '00:1F:A4:51:8C:60'), (896, '00:26:5A:50:BD:C4'), (896, '00:19:CB:E8:7B:D8'), (896, '00:1F:A4:51:7B:B4'), (896, '34:08:04:80:FF:07'), (896, '84:C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement