Task failed: <type 'exceptions.KeyError'>
'rd'
START OF TRACEBACK
------------------------------------------------------------------------
File: /opt/noc/sa/profiles/Cisco/IOS/get_interfaces.py (Line: 299)
Function: execute
292 except self.CLISyntaxError:
293 r = []
294 for v in r:
295 if v["type"] == "VRF":
296 vrfs[v["name"]] = {
297 "forwarding_instance": v["name"],
298 "type": "VRF",
299 ==> "rd": v["rd"],
300 "interfaces": []
301 }
302 for i in v["interfaces"]:
303 imap[i] = v["name"]
304 for i in interfaces:
305 subs = i["subinterfaces"]
Variables:
sp = {'status': True, 'tagged': [...]
ipv6_interfaces = defaultdict(<type 'list'>, {})
ip = 'x.x.x.x/32'
cmd = 'show vlan-switch brief'
portchannel_members = {}
ipv4_interfaces = defaultdict(<type 'list'>, {'Vl 85': ['x.x.x.x/28'], 'Lo 0': ['x.x.x.x/32']})
pvm = {}
ospfs = []
c_iface = None
iface = {'oper_status': True, 'admin_status': True, 'type': 'loopback', 'name': 'Lo 0', 'subinterfaces': [{'oper_status': True, 'admin_status': True, 'name': 'Lo 0', 'ipv4_addresses': ['195.98.58.173/32'], 'is_ipv4': True}]}
sub = {'oper_status': True, 'admin_status': True, 'name': 'Lo 0', 'ipv4_addresses': ['x.x.x.x/32'], 'is_ipv4': True}
self = <Script(script-x.x.x.x-Cisco.IOS.get_interfaces, started 34445180032)>
encaps = 'LOOPBACK, loopback not set'
matchmac = None
u = 1
ifname = 'Lo 0'
match = <_sre.SRE_Match object at 0x804f89a50>
t = [...]
o_stat = True
interfaces = [{'name': 'Vl 1', 'subinterfaces': [{...
hw = 'Loopback'
vlans = '\nVLAN Name ...
imap = {}
shotn = 'Lo0'
matchifn = <_sre.SRE_Match object at 0x804eb5f08>
l = ''
r = [{'status': True, 'interfaces': ['Fa 1'], 'type': 'VRF', 'name': 'mgmtVrf'}]
a_stat = True
vrfs = {'default': {'interfaces': [], 'type': 'ip', 'forwarding_instance': 'default'}}
v = {'status': True, 'interfaces': ['Fa 1'], 'type': 'VRF', 'name': 'mgmtVrf'}
switchports = {'Gi 1/18': (1, []), ...
------------------------------------------------------------------------
File: /opt/noc/sa/script/script.py (Line: 414)
Function: guarded_run
407 return result
408 except KeyError:
409 self.debug("Not in call cache: %r, %r" % (self.name,
410 self.kwargs))
411 pass
412 # Calling script body
413 self._thread_id = thread.get_ident()
414 ==> result = self.execute(**self.kwargs)
415 # Enforce interface result checking
416 for i in self.implements:
417 result = i.script_clean_result(self.profile, result)
418 # Cache result when required
419 if self.cache and self.parent is not None:
420 self.debug("Write to call cache: %s, %s, %r" % (self.name,
Variables:
i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x804b62810>
self = <Script(script-x.x.x.x-Cisco.IOS.get_interfaces, started 34445180032)>
------------------------------------------------------------------------
File: /opt/noc/sa/script/script.py (Line: 437)
Function: run
430
431 def run(self):
432 """Script thread worker method"""
433 self.debug("Running")
434 result = None
435 try:
436 with self.cancelable():
437 ==> result = self.guarded_run()
438 except self.TimeOutError:
439 self.error("Timed out")
440 self.e_timeout = True
441 except CancelledError:
442 self.error("Cancelled")
443 self.e_cancel = True
Variables:
self = <Script(script-x.x.x.x-Cisco.IOS.get_interfaces, started 34445180032)>
r = ["<type 'exceptions.KeyError'>", "'rd'"]
result = None
v = KeyError('rd',)
tb = <traceback object at 0x805132488>
t = <type 'exceptions.KeyError'>
------------------------------------------------------------------------
END OF TRACEBACK