Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-06-19 13:50:40,391 [inv.discovery: stp_discovery(cct01-uri-ltc)] Link candidate found: Gi 0/27 -> cct01-koz-ltc:8017
- 2014-06-19 13:50:40,395 [inv.discovery: stp_discovery(cct01-uri-ltc)] Link candidate found: Gi 0/27 -> core-sw1:8702
- 2014-06-19 13:50:40,400 [inv.discovery: stp_discovery(cct01-uri-ltc)] Link candidate found: Gi 0/18 -> cct01-uri-ltc:8013
- 2014-06-19 13:50:41,087 [inv.discovery: stp_discovery(cct01-uri-ltc)] UNHANDLED EXCEPTION (2014-06-19 13:50:40.403619)
- Working directory: /opt/noc
- <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- Invalid interface '8013'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/__init__.py (Line: 226)
- Function: convert_interface_name_cisco
- 219 >>> Profile().convert_interface_name_cisco("ATM1/1/ima0")
- 220 'At 1/1/ima0'
- 221 >>> Profile().convert_interface_name_cisco("Port-channel5B")
- 222 'Po 5B'
- 223 """
- 224 match = self.rx_cisco_interface_name.match(s)
- 225 if not match:
- 226 ==> raise InterfaceTypeError("Invalid interface '%s'" % s)
- 227 return "%s %s" % (match.group("type").capitalize(),
- 228 match.group("number"))
- 229
- 230 def root_interface(self, name):
- 231 """
- 232 Returns root interface
- Variables:
- s = '8013'
- self = <noc.sa.profiles.Cisco.IOS.Profile object at 0x4dc2790>
- match = None
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/__init__.py (Line: 76)
- Function: convert_interface_name
- 69 return "CPP"
- 70 if il.startswith("srp"):
- 71 return "SRP %s" % interface[3:].strip()
- 72 if il.startswith("cable"):
- 73 match = self.rx_cable_if.search(interface)
- 74 if match:
- 75 return "Ca %s/%s" % (match.group('pr_if'), match.group('sub_if'))
- 76 ==> return self.convert_interface_name_cisco(interface)
- 77
- 78 def generate_prefix_list(self, name, pl):
- 79 """
- 80 Generate prefix list _name_. pl is a list of (prefix, min_len, max_len)
- 81 """
- 82 me = "ip prefix-list %s permit %%s" % name
- Variables:
- interface = '8013'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement