Advertisement
Guest User

Untitled

a guest
Jun 19th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. 2014-06-19 13:48:21,639 [inv.discovery: stp_discovery(cct01-laz-2)] Pending link check: cct01-laz-2:8007 -> laz-2-cs3:Gi 2/0/50
  2. 2014-06-19 13:48:23,242 [inv.discovery: stp_discovery(cct01-laz-2)] UNHANDLED EXCEPTION (2014-06-19 13:48:21.643974)
  3. Working directory: /opt/noc
  4. <type 'exceptions.TypeError'>
  5. getattr(): attribute name must be string
  6. START OF TRACEBACK
  7. ------------------------------------------------------------------------
  8. File: /opt/noc/lib/python2.6/site-packages/mongoengine/base.py (Line: 1182)
  9. Function: __contains__
  10. 1175 # Ensure that the field exists before settings its value
  11. 1176 if name not in self._fields:
  12. 1177 raise KeyError(name)
  13. 1178 return setattr(self, name, value)
  14. 1179
  15. 1180 def __contains__(self, name):
  16. 1181 try:
  17. 1182 ==> val = getattr(self, name)
  18. 1183 return val is not None
  19. 1184 except AttributeError:
  20. 1185 return False
  21. 1186
  22. 1187 def __len__(self):
  23. 1188 return len(self._data)
  24. Variables:
  25. self = <Link: (laz-2-cs3: Gi 2/0/50, cct01-laz-2: Gi 1/0/7)>
  26. name = <Interface: cct01-laz-2: Gi 1/0/7>
  27. ------------------------------------------------------------------------
  28. File: /opt/noc/inv/discovery/jobs/link_discovery.py (Line: 93)
  29. Function: submit_link
  30. 86 return
  31. 87 # Check interfaces can be linked
  32. 88 if not self.can_link(l_iface) or not self.can_link(r_iface):
  33. 89 return
  34. 90 # Check link does not exists
  35. 91 ll = l_iface.link
  36. 92 rl = r_iface.link
  37. 93 ==> if ll and rl and l_iface in rl and r_iface in ll:
  38. 94 return # Already linked
  39. 95 # Unlinking existing links
  40. 96 if ll:
  41. 97 self.info("Unlinking %s" % ll)
  42. 98 ll.delete()
  43. 99 if rl:
  44. Variables:
  45. l_iface = <Interface: cct01-laz-2: Gi 1/0/7>
  46. local_object = <ManagedObject: cct01-laz-2>
  47. local_interface = 'Gi 1/0/7'
  48. ll = <Link: (laz-2-cs3: Gi 2/0/50, cct01-laz-2: Gi 1/0/7)>
  49. self =
  50. <noc.inv.discovery.jobs.stp_discovery.STPLinkDiscoveryJob object at 0x60ed490>
  51. r_iface = <Interface: laz-2-cs3: Gi 2/0/50>
  52. rl = <Link: (laz-2-cs3: Gi 2/0/50, cct01-laz-2: Gi 1/0/7)>
  53. remote_object = <ManagedObject: laz-2-cs3>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement