Advertisement
Guest User

Untitled

a guest
Jun 19th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. 2014-06-19 13:50:40,391 [inv.discovery: stp_discovery(cct01-uri-ltc)] Link candidate found: Gi 0/27 -> cct01-koz-ltc:8017
  2. 2014-06-19 13:50:40,395 [inv.discovery: stp_discovery(cct01-uri-ltc)] Link candidate found: Gi 0/27 -> core-sw1:8702
  3. 2014-06-19 13:50:40,400 [inv.discovery: stp_discovery(cct01-uri-ltc)] Link candidate found: Gi 0/18 -> cct01-uri-ltc:8013
  4. 2014-06-19 13:50:41,087 [inv.discovery: stp_discovery(cct01-uri-ltc)] UNHANDLED EXCEPTION (2014-06-19 13:50:40.403619)
  5. Working directory: /opt/noc
  6. <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  7. Invalid interface '8013'
  8. START OF TRACEBACK
  9. ------------------------------------------------------------------------
  10. File: /opt/noc/sa/profiles/__init__.py (Line: 226)
  11. Function: convert_interface_name_cisco
  12. 219 >>> Profile().convert_interface_name_cisco("ATM1/1/ima0")
  13. 220 'At 1/1/ima0'
  14. 221 >>> Profile().convert_interface_name_cisco("Port-channel5B")
  15. 222 'Po 5B'
  16. 223 """
  17. 224 match = self.rx_cisco_interface_name.match(s)
  18. 225 if not match:
  19. 226 ==> raise InterfaceTypeError("Invalid interface '%s'" % s)
  20. 227 return "%s %s" % (match.group("type").capitalize(),
  21. 228 match.group("number"))
  22. 229
  23. 230 def root_interface(self, name):
  24. 231 """
  25. 232 Returns root interface
  26. Variables:
  27. s = '8013'
  28. self = <noc.sa.profiles.Cisco.IOS.Profile object at 0x4dc2790>
  29. match = None
  30. ------------------------------------------------------------------------
  31. File: /opt/noc/sa/profiles/Cisco/IOS/__init__.py (Line: 76)
  32. Function: convert_interface_name
  33. 69 return "CPP"
  34. 70 if il.startswith("srp"):
  35. 71 return "SRP %s" % interface[3:].strip()
  36. 72 if il.startswith("cable"):
  37. 73 match = self.rx_cable_if.search(interface)
  38. 74 if match:
  39. 75 return "Ca %s/%s" % (match.group('pr_if'), match.group('sub_if'))
  40. 76 ==> return self.convert_interface_name_cisco(interface)
  41. 77
  42. 78 def generate_prefix_list(self, name, pl):
  43. 79 """
  44. 80 Generate prefix list _name_. pl is a list of (prefix, min_len, max_len)
  45. 81 """
  46. 82 me = "ip prefix-list %s permit %%s" % name
  47. Variables:
  48. interface = '8013'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement