# Pastebin VzBJXhq4 ERROR: 14 'bond' START OF TRACEBACK ------------------------------------------------------------------------ File: sa/profiles/MikroTik/RouterOS/get_interfaces.py (Line: 70) Function: execute 63 n_ifindex[n] = int(r["name"].rsplit(".", 1)[-1]) 64 # Fill interfaces 65 for n, f, r in self.cli_detail( 66 "/interface print detail without-paging"): 67 if not r["type"] in "vlan": # TODO: Check other types 68 ifaces[r["name"]] = { 69 "name": r["name"], 70 ==> "type": self.type_map[r["type"]], 71 "admin_status": "X" not in f, 72 "oper_status": "R" in f, 73 "subinterfaces": [] 74 } 75 misc[r["name"]] = { 76 "type": r["type"] Variables: n_ifindex = {0: 3, 1: 4, 2: 5, 3: 6, 4: 7, 5: 8, 6: 9, 7: 10, 8: 1, 9: 2, 10: 11, 11: 12, 12: 13, 13: 19, 14: 14, 15: 23, 16: 21, 17: 15, 18: 20, 19: 16, 20: 22} ifaces = {'Lo0': {'admin_status': True, 'name': 'Lo0', 'oper_status': True, 'snmp_ifindex': 11, 'subinterfaces': [], 'type': 'SVI'}, 'ether1': {'admin_status': True, 'name': 'ether1', 'oper_status': True, 'snmp_ifindex': 3, 'subinterfaces': [], 'type': 'physical'}, 'ether2': {'admin_status': True, 'name': 'ether2', 'oper_status': True, 'snmp_ifindex': 4, 'subinterfaces': [], 'type': 'physical'}, 'ether3': {'admin_status': True, 'name': 'ether3', 'oper_status': True, 'snmp_ifindex': 5, 'subinterfaces': [], 'type': 'physical'}, 'ether4': {'admin_status': True, 'name': 'ether4', 'oper_status': True, 'snmp_ifindex': 6, 'subinterfaces': [], 'type': 'physical'}, 'ether5': {'admin_status': True, 'name': 'ether5', 'oper_status': False, 'snmp_ifindex': 7, 'subinterfaces': [], 'type': 'physical'}, 'ether6': {'admin_status': True, 'name': 'ether6', 'oper_status': False, 'snmp_ifindex': 8, 'subinterfaces': [], 'type': 'physical'}, 'ether7': {'admin_status': True, 'name': 'ether7', 'oper_status': False, 'snmp_ifindex': 9, 'subinterfaces': [], 'type': 'physical'}, 'ether8': {'admin_status': True, 'name': 'ether8', 'oper_status': False, 'snmp_ifindex': 10, 'subinterfaces': [], 'type': 'physical'}, 'sfp-sfpplus1-to-mia001-01-cs01(Te0/?)': {'admin_status': True, 'name': 'sfp-sfpplus1-to-mia001-01-cs01(Te0/?)', 'oper_status': True, 'snmp_ifindex': 1, 'subinterfaces': [], 'type': 'physical'}, 'sfp-sfpplus2-to-mia001-01-cs02(Te0/?)': {'admin_status': True, 'name': 'sfp-sfpplus2-to-mia001-01-cs02(Te0/?)', 'oper_status': False, 'snmp_ifindex': 2, 'subinterfaces': [], 'type': 'physical'}} self = f = 'R' misc = {'Lo0': {'type': 'bridge'}, 'ether1': {'type': 'ether'}, 'ether2': {'type': 'ether'}, 'ether3': {'type': 'ether'}, 'ether4': {'type': 'ether'}, 'ether5': {'type': 'ether'}, 'ether6': {'type': 'ether'}, 'ether7': {'type': 'ether'}, 'ether8': {'type': 'ether'}, 'sfp-sfpplus1-to-mia001-01-cs01(Te0/?)': {'type': 'ether'}, 'sfp-sfpplus2-to-mia001-01-cs02(Te0/?)': {'type': 'ether'}} n = 11 r = {'actual-mtu': '1500', 'fast-path': 'yes', 'last-link-up-time': 'sep/30/2015 10:13:04', 'link-downs': '0', 'mac-address': 'D4:CA:6D:74:95:A7', 'mtu': '1500', 'name': 'Po1-to-mia001-01-cs-stack', 'type': 'bond'} ------------------------------------------------------------------------ File: sa/script/script.py (Line: 463) Function: guarded_run 456 return result 457 except KeyError: 458 self.logger.debug("Not in call cache: %r, %r", 459 self.name, self.kwargs) 460 pass 461 # Calling script body 462 self._thread_id = thread.get_ident() 463 ==> result = self.execute(**self.kwargs) 464 # Enforce interface result checking 465 for i in self.implements: 466 result = i.script_clean_result(self.profile, result) 467 # Cache result when required 468 if self.cache and self.parent is not None: 469 self.logger.debug( Variables: i = self = t0 = 1459032032.053234 ------------------------------------------------------------------------ File: sa/script/script.py (Line: 490) Function: run 483 484 def run(self): 485 """Script thread worker method""" 486 self.logger.debug("Running") 487 result = None 488 try: 489 with self.cancelable(): 490 ==> result = self.guarded_run() 491 except self.TimeOutError: 492 self.logger.error("Timed out") 493 self.e_timeout = True 494 except CancelledError: 495 self.logger.error("Cancelled") 496 self.e_cancel = True Variables: self = r = ["", "'bond'"] result = None v = KeyError('bond',) tb = t = ------------------------------------------------------------------------ END OF TRACEBACK