Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-03-03 13:47:36,579 script(Cisco.IOS.get_spanning_tree,laz-2-cs3,**{}) failed: <type 'exceptions.KeyError'>
- 'Gi 2/0/10'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_spanning_tree.py (Line: 107)
- Function: process_pvst
- 100 }]
- 101 for match in self.rx_pvst_interfaces.finditer(I):
- 102 instance_id = int(match.group("instance_id"))
- 103 if instance_id not in interfaces:
- 104 interfaces[instance_id] = []
- 105 interface = self.profile.convert_interface_name(
- 106 match.group("interface"))
- 107 ==> port_attrs = ports[instance_id][interface]
- 108 interfaces[instance_id] += [{
- 109 "interface": interface,
- 110 "port_id": match.group("port_id"),
- 111 "state": port_attrs["state"],
- 112 "role": port_attrs["role"],
- 113 "priority": match.group("priority"),
- Variables:
- proto = 'PVST+'
- I =
- '0806 is executing the ieee compatible Spanning Tree protocol\n Bridge Identifier has priority 32768, sysid 806, address 0022.56ae.4080\n Configured hello
- time 2, max age 20, forward delay 15\n Current root has priority 33574, address 000a.b8fb.6a00\n Root port is 104 (GigabitEthernet2/0/50), cost of root p
- ath is 8\n Topology change flag set, detected flag not set\n Number of topology changes 1074737 last change occurred 00:00:02 ago\n from GigabitE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement