Advertisement
Guest User

Untitled

a guest
Jan 31st, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 235.14 KB | None | 0 0
  1. 2014-01-31 10:07:28,778 UNHANDLED EXCEPTION (2014-01-31 10:07:28.325953)
  2. Working directory: /usr/local/noc
  3. <type 'exceptions.UnicodeEncodeError'>
  4. 'ascii' codec can't encode characters in position 4700-4706: ordinal not in range(128)
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /usr/local/noc/lib/fileutils.py (Line: 41)
  8. Function: safe_rewrite
  9. 34 """
  10. 35 d = os.path.dirname(path)
  11. 36 if d and not os.path.exists(d):
  12. 37 os.makedirs(d)
  13. 38 b = os.path.basename(path)
  14. 39 h, p = tempfile.mkstemp(suffix=".tmp", prefix=b, dir=d)
  15. 40 f = os.fdopen(h, "w")
  16. 41 ==> f.write(text)
  17. 42 f.close()
  18. 43 if os.path.exists(path):
  19. 44 os.unlink(path)
  20. 45 os.link(p, path)
  21. 46 os.unlink(p)
  22. 47 if mode:
  23. Variables:
  24. b = '57'
  25. d = '/tmp/jobs/interface_discovery'
  26. f = <open file '<fdopen>', mode 'w' at 0x809e91f60>
  27. h = 11
  28. p = '/tmp/jobs/interface_discovery/5719IAe1.tmp'
  29. mode = None
  30. text =
  31. u'Interface \'Gi 0/1\' has been changed: ifindex = 1\nInterface \'Gi 0/2\' has been changed: ifindex = 2\nInterface \'Gi 0/3\' has been changed: ifindex = 3\nInterface \'Gi 0/4\' has been changed: ifindex = 4\nInterface \'Gi 0/5\' has been changed: ifindex = 5\nInterface \'Gi 0/6\' has been changed: ifindex = 6\nInterface \'Gi 0/7\' has been changed: ifindex = 7\nInterface \'Gi 0/8\' has been changed: ifindex = 8\nInterface \'Gi 0/9\' has been changed: ifindex = 9\nInterface \'Gi 0/16\' has been changed: ifindex = 16\nInterface \'Gi 0/17\' has been changed: ifindex = 17\nInterface \'Gi 0/18\' has been changed: ifindex = 18\nInterface \'Gi 0/19\' has been changed: ifindex = 19\nInterface \'Gi 0/20\' has been changed: ifindex = 20\nInterface \'Gi 0/21\' has been changed: ifindex = 21\nInterface \'Gi 0/22\' has been changed: ifindex = 22\nInterface \'Gi 0/23\' has been changed: ifindex = 23\nUNHANDLED EXCEPTION (2014-01-31 10:07:27.776636)\nWorking directory: /usr/local/noc\n<type \'exceptions.UnicodeDecodeError\'>\n\'utf8\' codec can\'t decode byte 0xcb in position 20: invalid continuation byte\nSTART OF TRACEBACK\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/encodings/utf_8.py (Line: 16)\nFunction: decode\n 9 import codecs\n 10 \n 11 ### Codec APIs\n 12 \n 13 encode = codecs.utf_8_encode\n 14 \n 15 def decode(input, errors=\'strict\'):\n 16 ==> return codecs.utf_8_decode(input, errors, True)\n 17 \n 18 class IncrementalEncoder(codecs.IncrementalEncoder):\n 19 def encode(self, input, final=False):\n 20 return codecs.utf_8_encode(input, self.errors)[0]\n 21 \n 22 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):\nVariables:\n input = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n errors = \'strict\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/fields.py (Line: 55)\nFunction: to_python\n 48 self.min_length = min_length\n 49 super(StringField, self).__init__(**kwargs)\n 50 \n 51 def to_python(self, value):\n 52 if isinstance(value, unicode):\n 53 return value\n 54 else:\n 55 ==> return value.decode(\'utf-8\')\n 56 \n 57 def validate(self, value):\n 58 if not isinstance(value, basestring):\n 59 self.error(\'StringField only accepts string values\')\n 60 \n 61 if self.max_length is not None and len(value) > self.max_length:\nVariables:\n self = <mongoengine.fields.StringField object at 0x809536bd0>\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/base.py (Line: 217)\nFunction: to_mongo\n 210 """Convert a MongoDB-compatible type to a Python type.\n 211 """\n 212 return value\n 213 \n 214 def to_mongo(self, value):\n 215 """Convert a Python type to a MongoDB-compatible type.\n 216 """\n 217 ==> return self.to_python(value)\n 218 \n 219 def prepare_query_value(self, op, value):\n 220 """Prepare a value that is being used in a query for PyMongo.\n 221 """\n 222 return value\n 223 \nVariables:\n self = <mongoengine.fields.StringField object at 0x809536bd0>\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/base.py (Line: 916)\nFunction: to_mongo\n 909 def to_mongo(self):\n 910 """Return data dictionary ready for use with MongoDB.\n 911 """\n 912 data = {}\n 913 for field_name, field in self._fields.items():\n 914 value = getattr(self, field_name, None)\n 915 if value is not None:\n 916 ==> data[field.db_field] = field.to_mongo(value)\n 917 # Only add _cls and _types if allow_inheritance is not False\n 918 if not (hasattr(self, \'_meta\') and\n 919 self._meta.get(\'allow_inheritance\', True) == False):\n 920 data[\'_cls\'] = self._class_name\n 921 data[\'_types\'] = self._superclasses.keys() + [self._class_name]\n 922 if \'_id\' in data and data[\'_id\'] is None:\nVariables:\n field = <mongoengine.fields.StringField object at 0x809536bd0>\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n field_name = \'description\'\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n data = {\'profile\': ObjectId(\'500a5ee4bcf4b15bb7000000\')}\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/document.py (Line: 189)\nFunction: save\n 182 \n 183 if validate:\n 184 self.validate()\n 185 \n 186 if not write_options:\n 187 write_options = {}\n 188 \n 189 ==> doc = self.to_mongo()\n 190 \n 191 created = force_insert or \'_id\' not in doc\n 192 \n 193 try:\n 194 collection = self.__class__.objects._collection\n 195 if created:\nVariables:\n force_insert = False\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n safe = True\n _refs = None\n cascade = None\n cascade_kwargs = None\n write_options = {}\n validate = True\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/models/interface.py (Line: 70)\nFunction: save\n 63 def __unicode__(self):\n 64 return u"%s: %s" % (self.managed_object.name, self.name)\n 65 \n 66 def save(self, *args, **kwargs):\n 67 self.name = self.managed_object.profile.convert_interface_name(self.name)\n 68 if self.mac:\n 69 self.mac = MACAddressParameter().clean(self.mac)\n 70 ==> super(Interface, self).save(*args, **kwargs)\n 71 \n 72 def delete(self, *args, **kwargs):\n 73 # Remove all subinterfaces\n 74 for si in self.subinterface_set.all():\n 75 si.delete()\n 76 # Unlink\nVariables:\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n args = ()\n kwargs = {}\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/reports/base.py (Line: 60)\nFunction: update_if_changed\n 53 for k, v in values.items():\n 54 vv = getattr(obj, k)\n 55 if v != vv:\n 56 if type(v) != int or not hasattr(vv, "id") or v != vv.id:\n 57 setattr(obj, k, v)\n 58 changes += [(k, v)]\n 59 if changes:\n 60 ==> obj.save()\n 61 return changes\n 62 \n 63 def log_changes(self, msg, changes):\n 64 """\n 65 Log changes\n 66 :param msg: Message\nVariables:\n obj = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n k = \'type\'\n values = \n{\'aggregated_interface\': None,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'ifindex\': 24,\n \'mac\': None,\n \'type\': \'physical\'}\n vv = u\'physical\'\n v = \'physical\'\n changes = [(\'description\', \'Up-Link (SFP-1550/20\\xcb\\xcd)\'), (\'ifindex\', 24)]\n self = \n<noc.inv.discovery.reports.interfacereport.InterfaceReport object at 0x809f56f10>\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/reports/interfacereport.py (Line: 142)\nFunction: submit_interface\n 135 # Interface exists\n 136 changes = self.update_if_changed(iface, {\n 137 "type": type,\n 138 "mac": mac,\n 139 "description": description,\n 140 "aggregated_interface": aggregated_interface,\n 141 "enabled_protocols": enabled_protocols,\n 142 ==> "ifindex": ifindex\n 143 })\n 144 self.log_changes("Interface \'%s\' has been changed" % name,\n 145 changes)\n 146 else:\n 147 # Create interface\n 148 self.info("Creating interface \'%s\'" % name)\nVariables:\n iface = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n description = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n enabled_protocols = [\'LLDP\']\n self = \n<noc.inv.discovery.reports.interfacereport.InterfaceReport object at 0x809f56f10>\n mac = None\naggregated_interface = None\n ifindex = 24\n type = \'physical\'\n name = \'Gi 0/24\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/jobs/interface_discovery.py (Line: 110)\nFunction: handler\n 103 continue\n 104 # Submit discovered interface\n 105 iface = self.report.submit_interface(\n 106 name=i["name"], type=i["type"], mac=i.get("mac"),\n 107 description=i.get("description"),\n 108 aggregated_interface=agg,\n 109 enabled_protocols=i.get("enabled_protocols", []),\n 110 ==> ifindex=i.get("snmp_ifindex")\n 111 )\n 112 icache[i["name"]] = iface\n 113 # Submit subinterfaces\n 114 for si in i["subinterfaces"]:\n 115 self.report.submit_subinterface(\n 116 forwarding_instance=forwarding_instance,\nVariables:\n iface = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/23>\n ifaces = \n[{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11, 249, 251, 252, 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11, 249, 251, 252, 254, 255, 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}]\n agg = None\n self = \n<noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>\n object = <ManagedObject: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b>\n i = \n{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11, 249, 251, 252, 254, 255, 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'}\n si = \n{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11, 249, 251, 252, 254],\n \'untagged_vlan\': 12}\n icache = repr() failed\n result = \n[{\'forwarding_instance\': \'default\',\n \'interfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10,\n 11,\n 249,\n 251,\n 252,\n 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11,\n 249,\n 251,\n 252,\n 254,\n 255,\n 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}],\n \'type\': \'ip\'}]\n forwarding_instance = None\n fi = \n{\'forwarding_instance\': \'default\',\n \'interfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10,\n 11,\n 249,\n 251,\n 252,\n 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11,\n 249,\n 251,\n 252,\n 254,\n 255,\n 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}],\n \'type\': \'ip\'}\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/scheduler/scheduler.py (Line: 267)\nFunction: _job_wrapper\n 260 else:\n 261 return self._job_wrapper(job, **kwargs)\n 262 \n 263 def _job_wrapper(self, job, **kwargs):\n 264 tb = None\n 265 t0 = time.time()\n 266 try:\n 267 ==> r = job.handler(**kwargs)\n 268 except Exception:\n 269 # error_report()\n 270 tb = get_traceback()\n 271 job.error(tb)\n 272 job.on_exception()\n 273 s = job.S_EXCEPTION\nVariables:\n job = \n<noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>\n tb = None\n self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>\n t0 = 1391155647.398984\n kwargs = repr() failed\n------------------------------------------------------------------------\nEND OF TRACEBACK'
  32. path = '/tmp/jobs/interface_discovery/57'
  33. ------------------------------------------------------------------------
  34. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 294)
  35. Function: _complete_job
  36. 287 job.on_failure()
  37. 288 s = job.S_FAILED
  38. 289 self._complete_job(job, s, tb)
  39. 290
  40. 291 def _complete_job(self, job, status, tb):
  41. 292 if self.to_log_jobs:
  42. 293 path = os.path.join(self.log_jobs, job.name, str(job.key))
  43. 294 ==> safe_rewrite(path, job.get_job_log())
  44. 295 group = job.get_group()
  45. 296 if group is not None:
  46. 297 with self.running_lock:
  47. 298 self.running_count[group] -= 1
  48. 299 if not self.running_count[group]:
  49. 300 del self.running_count[group]
  50. Variables:
  51. status = 'X'
  52. path = '/tmp/jobs/interface_discovery/57'
  53. job =
  54. <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
  55. tb =
  56. u'UNHANDLED EXCEPTION (2014-01-31 10:07:27.776636)\nWorking directory: /usr/local/noc\n<type \'exceptions.UnicodeDecodeError\'>\n\'utf8\' codec can\'t decode byte 0xcb in position 20: invalid continuation byte\nSTART OF TRACEBACK\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/encodings/utf_8.py (Line: 16)\nFunction: decode\n 9 import codecs\n 10 \n 11 ### Codec APIs\n 12 \n 13 encode = codecs.utf_8_encode\n 14 \n 15 def decode(input, errors=\'strict\'):\n 16 ==> return codecs.utf_8_decode(input, errors, True)\n 17 \n 18 class IncrementalEncoder(codecs.IncrementalEncoder):\n 19 def encode(self, input, final=False):\n 20 return codecs.utf_8_encode(input, self.errors)[0]\n 21 \n 22 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):\nVariables:\n input = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n errors = \'strict\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/fields.py (Line: 55)\nFunction: to_python\n 48 self.min_length = min_length\n 49 super(StringField, self).__init__(**kwargs)\n 50 \n 51 def to_python(self, value):\n 52 if isinstance(value, unicode):\n 53 return value\n 54 else:\n 55 ==> return value.decode(\'utf-8\')\n 56 \n 57 def validate(self, value):\n 58 if not isinstance(value, basestring):\n 59 self.error(\'StringField only accepts string values\')\n 60 \n 61 if self.max_length is not None and len(value) > self.max_length:\nVariables:\n self = <mongoengine.fields.StringField object at 0x809536bd0>\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/base.py (Line: 217)\nFunction: to_mongo\n 210 """Convert a MongoDB-compatible type to a Python type.\n 211 """\n 212 return value\n 213 \n 214 def to_mongo(self, value):\n 215 """Convert a Python type to a MongoDB-compatible type.\n 216 """\n 217 ==> return self.to_python(value)\n 218 \n 219 def prepare_query_value(self, op, value):\n 220 """Prepare a value that is being used in a query for PyMongo.\n 221 """\n 222 return value\n 223 \nVariables:\n self = <mongoengine.fields.StringField object at 0x809536bd0>\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/base.py (Line: 916)\nFunction: to_mongo\n 909 def to_mongo(self):\n 910 """Return data dictionary ready for use with MongoDB.\n 911 """\n 912 data = {}\n 913 for field_name, field in self._fields.items():\n 914 value = getattr(self, field_name, None)\n 915 if value is not None:\n 916 ==> data[field.db_field] = field.to_mongo(value)\n 917 # Only add _cls and _types if allow_inheritance is not False\n 918 if not (hasattr(self, \'_meta\') and\n 919 self._meta.get(\'allow_inheritance\', True) == False):\n 920 data[\'_cls\'] = self._class_name\n 921 data[\'_types\'] = self._superclasses.keys() + [self._class_name]\n 922 if \'_id\' in data and data[\'_id\'] is None:\nVariables:\n field = <mongoengine.fields.StringField object at 0x809536bd0>\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n field_name = \'description\'\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n data = {\'profile\': ObjectId(\'500a5ee4bcf4b15bb7000000\')}\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/document.py (Line: 189)\nFunction: save\n 182 \n 183 if validate:\n 184 self.validate()\n 185 \n 186 if not write_options:\n 187 write_options = {}\n 188 \n 189 ==> doc = self.to_mongo()\n 190 \n 191 created = force_insert or \'_id\' not in doc\n 192 \n 193 try:\n 194 collection = self.__class__.objects._collection\n 195 if created:\nVariables:\n force_insert = False\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n safe = True\n _refs = None\n cascade = None\n cascade_kwargs = None\n write_options = {}\n validate = True\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/models/interface.py (Line: 70)\nFunction: save\n 63 def __unicode__(self):\n 64 return u"%s: %s" % (self.managed_object.name, self.name)\n 65 \n 66 def save(self, *args, **kwargs):\n 67 self.name = self.managed_object.profile.convert_interface_name(self.name)\n 68 if self.mac:\n 69 self.mac = MACAddressParameter().clean(self.mac)\n 70 ==> super(Interface, self).save(*args, **kwargs)\n 71 \n 72 def delete(self, *args, **kwargs):\n 73 # Remove all subinterfaces\n 74 for si in self.subinterface_set.all():\n 75 si.delete()\n 76 # Unlink\nVariables:\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n args = ()\n kwargs = {}\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/reports/base.py (Line: 60)\nFunction: update_if_changed\n 53 for k, v in values.items():\n 54 vv = getattr(obj, k)\n 55 if v != vv:\n 56 if type(v) != int or not hasattr(vv, "id") or v != vv.id:\n 57 setattr(obj, k, v)\n 58 changes += [(k, v)]\n 59 if changes:\n 60 ==> obj.save()\n 61 return changes\n 62 \n 63 def log_changes(self, msg, changes):\n 64 """\n 65 Log changes\n 66 :param msg: Message\nVariables:\n obj = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n k = \'type\'\n values = \n{\'aggregated_interface\': None,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'ifindex\': 24,\n \'mac\': None,\n \'type\': \'physical\'}\n vv = u\'physical\'\n v = \'physical\'\n changes = [(\'description\', \'Up-Link (SFP-1550/20\\xcb\\xcd)\'), (\'ifindex\', 24)]\n self = \n<noc.inv.discovery.reports.interfacereport.InterfaceReport object at 0x809f56f10>\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/reports/interfacereport.py (Line: 142)\nFunction: submit_interface\n 135 # Interface exists\n 136 changes = self.update_if_changed(iface, {\n 137 "type": type,\n 138 "mac": mac,\n 139 "description": description,\n 140 "aggregated_interface": aggregated_interface,\n 141 "enabled_protocols": enabled_protocols,\n 142 ==> "ifindex": ifindex\n 143 })\n 144 self.log_changes("Interface \'%s\' has been changed" % name,\n 145 changes)\n 146 else:\n 147 # Create interface\n 148 self.info("Creating interface \'%s\'" % name)\nVariables:\n iface = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n description = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n enabled_protocols = [\'LLDP\']\n self = \n<noc.inv.discovery.reports.interfacereport.InterfaceReport object at 0x809f56f10>\n mac = None\naggregated_interface = None\n ifindex = 24\n type = \'physical\'\n name = \'Gi 0/24\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/jobs/interface_discovery.py (Line: 110)\nFunction: handler\n 103 continue\n 104 # Submit discovered interface\n 105 iface = self.report.submit_interface(\n 106 name=i["name"], type=i["type"], mac=i.get("mac"),\n 107 description=i.get("description"),\n 108 aggregated_interface=agg,\n 109 enabled_protocols=i.get("enabled_protocols", []),\n 110 ==> ifindex=i.get("snmp_ifindex")\n 111 )\n 112 icache[i["name"]] = iface\n 113 # Submit subinterfaces\n 114 for si in i["subinterfaces"]:\n 115 self.report.submit_subinterface(\n 116 forwarding_instance=forwarding_instance,\nVariables:\n iface = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/23>\n ifaces = \n[{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11, 249, 251, 252, 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11, 249, 251, 252, 254, 255, 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}]\n agg = None\n self = \n<noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>\n object = <ManagedObject: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b>\n i = \n{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11, 249, 251, 252, 254, 255, 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'}\n si = \n{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11, 249, 251, 252, 254],\n \'untagged_vlan\': 12}\n icache = repr() failed\n result = \n[{\'forwarding_instance\': \'default\',\n \'interfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10,\n 11,\n 249,\n 251,\n 252,\n 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11,\n 249,\n 251,\n 252,\n 254,\n 255,\n 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}],\n \'type\': \'ip\'}]\n forwarding_instance = None\n fi = \n{\'forwarding_instance\': \'default\',\n \'interfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10,\n 11,\n 249,\n 251,\n 252,\n 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11,\n 249,\n 251,\n 252,\n 254,\n 255,\n 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}],\n \'type\': \'ip\'}\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/scheduler/scheduler.py (Line: 267)\nFunction: _job_wrapper\n 260 else:\n 261 return self._job_wrapper(job, **kwargs)\n 262 \n 263 def _job_wrapper(self, job, **kwargs):\n 264 tb = None\n 265 t0 = time.time()\n 266 try:\n 267 ==> r = job.handler(**kwargs)\n 268 except Exception:\n 269 # error_report()\n 270 tb = get_traceback()\n 271 job.error(tb)\n 272 job.on_exception()\n 273 s = job.S_EXCEPTION\nVariables:\n job = \n<noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>\n tb = None\n self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>\n t0 = 1391155647.398984\n kwargs = repr() failed\n------------------------------------------------------------------------\nEND OF TRACEBACK'
  57. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
  58. ------------------------------------------------------------------------
  59. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 289)
  60. Function: _job_wrapper
  61. 282 else:
  62. 283 self.info("Job %s(%s) is failed (%fsec)" % (
  63. 284 job.name, job.get_display_key(),
  64. 285 time.time() - t0
  65. 286 ))
  66. 287 job.on_failure()
  67. 288 s = job.S_FAILED
  68. 289 ==> self._complete_job(job, s, tb)
  69. 290
  70. 291 def _complete_job(self, job, status, tb):
  71. 292 if self.to_log_jobs:
  72. 293 path = os.path.join(self.log_jobs, job.name, str(job.key))
  73. 294 safe_rewrite(path, job.get_job_log())
  74. 295 group = job.get_group()
  75. Variables:
  76. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
  77. job =
  78. <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
  79. t0 = 1391155647.398984
  80. s = 'X'
  81. kwargs = repr() failed
  82. tb =
  83. u'UNHANDLED EXCEPTION (2014-01-31 10:07:27.776636)\nWorking directory: /usr/local/noc\n<type \'exceptions.UnicodeDecodeError\'>\n\'utf8\' codec can\'t decode byte 0xcb in position 20: invalid continuation byte\nSTART OF TRACEBACK\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/encodings/utf_8.py (Line: 16)\nFunction: decode\n 9 import codecs\n 10 \n 11 ### Codec APIs\n 12 \n 13 encode = codecs.utf_8_encode\n 14 \n 15 def decode(input, errors=\'strict\'):\n 16 ==> return codecs.utf_8_decode(input, errors, True)\n 17 \n 18 class IncrementalEncoder(codecs.IncrementalEncoder):\n 19 def encode(self, input, final=False):\n 20 return codecs.utf_8_encode(input, self.errors)[0]\n 21 \n 22 class IncrementalDecoder(codecs.BufferedIncrementalDecoder):\nVariables:\n input = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n errors = \'strict\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/fields.py (Line: 55)\nFunction: to_python\n 48 self.min_length = min_length\n 49 super(StringField, self).__init__(**kwargs)\n 50 \n 51 def to_python(self, value):\n 52 if isinstance(value, unicode):\n 53 return value\n 54 else:\n 55 ==> return value.decode(\'utf-8\')\n 56 \n 57 def validate(self, value):\n 58 if not isinstance(value, basestring):\n 59 self.error(\'StringField only accepts string values\')\n 60 \n 61 if self.max_length is not None and len(value) > self.max_length:\nVariables:\n self = <mongoengine.fields.StringField object at 0x809536bd0>\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/base.py (Line: 217)\nFunction: to_mongo\n 210 """Convert a MongoDB-compatible type to a Python type.\n 211 """\n 212 return value\n 213 \n 214 def to_mongo(self, value):\n 215 """Convert a Python type to a MongoDB-compatible type.\n 216 """\n 217 ==> return self.to_python(value)\n 218 \n 219 def prepare_query_value(self, op, value):\n 220 """Prepare a value that is being used in a query for PyMongo.\n 221 """\n 222 return value\n 223 \nVariables:\n self = <mongoengine.fields.StringField object at 0x809536bd0>\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/base.py (Line: 916)\nFunction: to_mongo\n 909 def to_mongo(self):\n 910 """Return data dictionary ready for use with MongoDB.\n 911 """\n 912 data = {}\n 913 for field_name, field in self._fields.items():\n 914 value = getattr(self, field_name, None)\n 915 if value is not None:\n 916 ==> data[field.db_field] = field.to_mongo(value)\n 917 # Only add _cls and _types if allow_inheritance is not False\n 918 if not (hasattr(self, \'_meta\') and\n 919 self._meta.get(\'allow_inheritance\', True) == False):\n 920 data[\'_cls\'] = self._class_name\n 921 data[\'_types\'] = self._superclasses.keys() + [self._class_name]\n 922 if \'_id\' in data and data[\'_id\'] is None:\nVariables:\n field = <mongoengine.fields.StringField object at 0x809536bd0>\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n field_name = \'description\'\n value = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n data = {\'profile\': ObjectId(\'500a5ee4bcf4b15bb7000000\')}\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/python2.7/site-packages/mongoengine/document.py (Line: 189)\nFunction: save\n 182 \n 183 if validate:\n 184 self.validate()\n 185 \n 186 if not write_options:\n 187 write_options = {}\n 188 \n 189 ==> doc = self.to_mongo()\n 190 \n 191 created = force_insert or \'_id\' not in doc\n 192 \n 193 try:\n 194 collection = self.__class__.objects._collection\n 195 if created:\nVariables:\n force_insert = False\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n safe = True\n _refs = None\n cascade = None\n cascade_kwargs = None\n write_options = {}\n validate = True\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/models/interface.py (Line: 70)\nFunction: save\n 63 def __unicode__(self):\n 64 return u"%s: %s" % (self.managed_object.name, self.name)\n 65 \n 66 def save(self, *args, **kwargs):\n 67 self.name = self.managed_object.profile.convert_interface_name(self.name)\n 68 if self.mac:\n 69 self.mac = MACAddressParameter().clean(self.mac)\n 70 ==> super(Interface, self).save(*args, **kwargs)\n 71 \n 72 def delete(self, *args, **kwargs):\n 73 # Remove all subinterfaces\n 74 for si in self.subinterface_set.all():\n 75 si.delete()\n 76 # Unlink\nVariables:\n self = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n args = ()\n kwargs = {}\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/reports/base.py (Line: 60)\nFunction: update_if_changed\n 53 for k, v in values.items():\n 54 vv = getattr(obj, k)\n 55 if v != vv:\n 56 if type(v) != int or not hasattr(vv, "id") or v != vv.id:\n 57 setattr(obj, k, v)\n 58 changes += [(k, v)]\n 59 if changes:\n 60 ==> obj.save()\n 61 return changes\n 62 \n 63 def log_changes(self, msg, changes):\n 64 """\n 65 Log changes\n 66 :param msg: Message\nVariables:\n obj = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n k = \'type\'\n values = \n{\'aggregated_interface\': None,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'ifindex\': 24,\n \'mac\': None,\n \'type\': \'physical\'}\n vv = u\'physical\'\n v = \'physical\'\n changes = [(\'description\', \'Up-Link (SFP-1550/20\\xcb\\xcd)\'), (\'ifindex\', 24)]\n self = \n<noc.inv.discovery.reports.interfacereport.InterfaceReport object at 0x809f56f10>\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/reports/interfacereport.py (Line: 142)\nFunction: submit_interface\n 135 # Interface exists\n 136 changes = self.update_if_changed(iface, {\n 137 "type": type,\n 138 "mac": mac,\n 139 "description": description,\n 140 "aggregated_interface": aggregated_interface,\n 141 "enabled_protocols": enabled_protocols,\n 142 ==> "ifindex": ifindex\n 143 })\n 144 self.log_changes("Interface \'%s\' has been changed" % name,\n 145 changes)\n 146 else:\n 147 # Create interface\n 148 self.info("Creating interface \'%s\'" % name)\nVariables:\n iface = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/24>\n description = \'Up-Link (SFP-1550/20\\xcb\\xcd)\'\n enabled_protocols = [\'LLDP\']\n self = \n<noc.inv.discovery.reports.interfacereport.InterfaceReport object at 0x809f56f10>\n mac = None\naggregated_interface = None\n ifindex = 24\n type = \'physical\'\n name = \'Gi 0/24\'\n------------------------------------------------------------------------\nFile: /usr/local/noc/inv/discovery/jobs/interface_discovery.py (Line: 110)\nFunction: handler\n 103 continue\n 104 # Submit discovered interface\n 105 iface = self.report.submit_interface(\n 106 name=i["name"], type=i["type"], mac=i.get("mac"),\n 107 description=i.get("description"),\n 108 aggregated_interface=agg,\n 109 enabled_protocols=i.get("enabled_protocols", []),\n 110 ==> ifindex=i.get("snmp_ifindex")\n 111 )\n 112 icache[i["name"]] = iface\n 113 # Submit subinterfaces\n 114 for si in i["subinterfaces"]:\n 115 self.report.submit_subinterface(\n 116 forwarding_instance=forwarding_instance,\nVariables:\n iface = <Interface: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b: Gi 0/23>\n ifaces = \n[{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11, 249, 251, 252, 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11, 249, 251, 252, 254, 255, 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}]\n agg = None\n self = \n<noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>\n object = <ManagedObject: 17 \u043a\u0432\u0430\u0440\u0442\u0430\u043b>\n i = \n{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11, 249, 251, 252, 254, 255, 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'}\n si = \n{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11, 249, 251, 252, 254],\n \'untagged_vlan\': 12}\n icache = repr() failed\n result = \n[{\'forwarding_instance\': \'default\',\n \'interfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10,\n 11,\n 249,\n 251,\n 252,\n 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11,\n 249,\n 251,\n 252,\n 254,\n 255,\n 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}],\n \'type\': \'ip\'}]\n forwarding_instance = None\n fi = \n{\'forwarding_instance\': \'default\',\n \'interfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'snmp_ifindex\': 1,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_2(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/1\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'snmp_ifindex\': 2,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_5(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/2\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'snmp_ifindex\': 3,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_6(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/3\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'snmp_ifindex\': 4,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_14(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/4\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'snmp_ifindex\': 5,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_17(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/5\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'snmp_ifindex\': 6,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_18(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/6\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'snmp_ifindex\': 7,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_20(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/7\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'snmp_ifindex\': 8,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_23(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/8\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'snmp_ifindex\': 9,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Kos_25(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/9\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_10(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/10\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VKot_13(SFP-1310/20)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/11\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_121(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/12\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lut_125(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/13\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_4(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/14\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_10(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/15\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'snmp_ifindex\': 16,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Shorsa_33(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/16\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'snmp_ifindex\': 17,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Griz_1(SFP-1310/3)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/17\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'snmp_ifindex\': 18,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/18\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'snmp_ifindex\': 19,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/19\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'snmp_ifindex\': 20,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/20\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'snmp_ifindex\': 21,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'None\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/21\',\n \'oper_status\': False,\n \'tagged_vlans\': [10, 11],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'snmp_ifindex\': 22,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Control (VLAN 11)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/22\',\n \'oper_status\': False,\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'snmp_ifindex\': 23,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Lutogo_164 (UTP)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/23\',\n \'oper_status\': False,\n \'tagged_vlans\': [10,\n 11,\n 249,\n 251,\n 252,\n 254],\n \'untagged_vlan\': 12}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_protocols\': [\'LLDP\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'snmp_ifindex\': 24,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'Up-Link (SFP-1550/20\\xcb\\xcd)\',\n \'enabled_afi\': [\'BRIDGE\'],\n \'name\': \'Gi 0/24\',\n \'oper_status\': False,\n \'tagged_vlans\': [11,\n 249,\n 251,\n 252,\n 254,\n 255,\n 256],\n \'untagged_vlan\': 1}],\n \'type\': \'physical\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4097,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 1\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'127.0.0.1/32\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 1\',\n \'oper_status\': True,\n \'vlan_ids\': [1]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4106,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 10\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.109.208.1/21\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 10\',\n \'oper_status\': True,\n \'vlan_ids\': [10]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4107,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 11\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'172.20.30.2/23\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 11\',\n \'oper_status\': True,\n \'vlan_ids\': [11]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4351,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 255\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.110.0.84/24\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 255\',\n \'oper_status\': True,\n \'vlan_ids\': [255]}],\n \'type\': \'SVI\'},\n {\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'snmp_ifindex\': 4352,\n \'subinterfaces\': [{\'admin_status\': True,\n \'description\': \'VLAN 256\',\n \'enabled_afi\': [\'IPv4\'],\n \'enabled_protocols\': [],\n \'ipv4_addresses\': [\'10.116.1.52/16\'],\n \'mac\': \'F0:7D:68:F0:69:3F\',\n \'name\': \'Vl 256\',\n \'oper_status\': True,\n \'vlan_ids\': [256]}],\n \'type\': \'SVI\'}],\n \'type\': \'ip\'}\n------------------------------------------------------------------------\nFile: /usr/local/noc/lib/scheduler/scheduler.py (Line: 267)\nFunction: _job_wrapper\n 260 else:\n 261 return self._job_wrapper(job, **kwargs)\n 262 \n 263 def _job_wrapper(self, job, **kwargs):\n 264 tb = None\n 265 t0 = time.time()\n 266 try:\n 267 ==> r = job.handler(**kwargs)\n 268 except Exception:\n 269 # error_report()\n 270 tb = get_traceback()\n 271 job.error(tb)\n 272 job.on_exception()\n 273 s = job.S_EXCEPTION\nVariables:\n job = \n<noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>\n tb = None\n self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>\n t0 = 1391155647.398984\n kwargs = repr() failed\n------------------------------------------------------------------------\nEND OF TRACEBACK'
  84. ------------------------------------------------------------------------
  85. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 261)
  86. Function: _run_job_handler
  87. 254 if job.threaded:
  88. 255 t = threading.Thread(target=self._job_wrapper,
  89. 256 args=(job,), kwargs=kwargs
  90. 257 )
  91. 258 t.daemon = True
  92. 259 t.start()
  93. 260 else:
  94. 261 ==> return self._job_wrapper(job, **kwargs)
  95. 262
  96. 263 def _job_wrapper(self, job, **kwargs):
  97. 264 tb = None
  98. 265 t0 = time.time()
  99. 266 try:
  100. 267 r = job.handler(**kwargs)
  101. Variables:
  102. job =
  103. <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
  104. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
  105. kwargs = repr() failed
  106. ------------------------------------------------------------------------
  107. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 327)
  108. Function: complete_mrt_job
  109. 320 self.reschedule_job(job_name, key, ts, skip_running=True)
  110. 321
  111. 322 def complete_mrt_job(self, t):
  112. 323 job = self.active_mrt.pop(t)
  113. 324 for m in t.maptask_set.all():
  114. 325 if m.status == "C":
  115. 326 self._run_job_handler(job, object=m.managed_object,
  116. 327 ==> result=m.script_result)
  117. 328 else:
  118. 329 self.info("Job %s(%s) is failed" % (
  119. 330 job.name, job.get_display_key()))
  120. 331 self._complete_job(job, self.S_FAIL, m.script_result)
  121. 332 t.delete()
  122. 333
  123. Variables:
  124. job =
  125. <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
  126. m = <MapTask: 9164652: 17 квартал DLink.DxS_Cisco_CLI.get_interfaces>
  127. t = <ReduceTask: 9122069>
  128. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
  129. ------------------------------------------------------------------------
  130. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 361)
  131. Function: run_pending
  132. 354 # Reschedule initial submit
  133. 355 self.initial_submit_next_check[jcls] = (
  134. 356 t0 + jcls.initial_submit_interval)
  135. 357 # Check for complete MRT
  136. 358 if self.active_mrt:
  137. 359 complete = [t for t in self.active_mrt if t.complete]
  138. 360 for t in complete:
  139. 361 ==> self.complete_mrt_job(t)
  140. 362 self.active_mrt = dict(
  141. 363 (t, self.active_mrt[t])
  142. 364 for t in self.active_mrt if t not in complete)
  143. 365 # Check for pending persistent tasks
  144. 366 q = {
  145. 367 self.ATTR_TS: {"$lte": datetime.datetime.now()},
  146. Variables:
  147. complete =
  148. [<ReduceTask: New: 34526777104>,
  149. <ReduceTask: 9122069>,
  150. <ReduceTask: 9122074>,
  151. <ReduceTask: 9122075>,
  152. <ReduceTask: 9122079>,
  153. <ReduceTask: 9122080>,
  154. <ReduceTask: 9122081>,
  155. <ReduceTask: 9122093>,
  156. <ReduceTask: 9122098>]
  157. jcls = <class 'noc.inv.discovery.jobs.vlan_discovery.VLANDiscoveryJob'>
  158. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
  159. t0 = 1391155646.811024
  160. n = 0
  161. t = <ReduceTask: 9122069>
  162. ------------------------------------------------------------------------
  163. File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 420)
  164. Function: run
  165. 413 self.ATTR_STATUS: self.S_RUN
  166. 414 }, {
  167. 415 "$set": {self.ATTR_STATUS: self.S_WAIT}
  168. 416 }, multi=True, safe=True)
  169. 417 self.ensure_indexes()
  170. 418 self.info("Running scheduler")
  171. 419 while True:
  172. 420 ==> if not self.run_pending():
  173. 421 time.sleep(1)
  174. 422 else:
  175. 423 self.cleanup()
  176. 424
  177. 425 def wipe(self):
  178. 426 """
  179. Variables:
  180. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
  181. ------------------------------------------------------------------------
  182. File: /usr/local/noc/inv/discovery/daemon.py (Line: 36)
  183. Function: run
  184. 29
  185. 30 def run(self):
  186. 31 try:
  187. 32 PerformanceReportJob.submit(self.scheduler,
  188. 33 key="performance_report", interval=60)
  189. 34 except self.scheduler.JobExists:
  190. 35 pass
  191. 36 ==> self.scheduler.run()
  192. 37
  193. 38 def load_config(self):
  194. 39 super(DiscoveryDaemon, self).load_config()
  195. 40 self.load_beef_map()
  196. 41 log_jobs = self.config.get("main", "log_jobs") or None
  197. 42 self.scheduler.set_job_log(log_jobs)
  198. Variables:
  199. self = <noc.inv.discovery.daemon.DiscoveryDaemon object at 0x800fc1110>
  200. ------------------------------------------------------------------------
  201. File: /usr/local/noc/lib/daemon.py (Line: 364)
  202. Function: guarded_run
  203. 357
  204. 358 def guarded_run(self):
  205. 359 """
  206. 360 Run daemon and catch common exceptions
  207. 361 :return:
  208. 362 """
  209. 363 try:
  210. 364 ==> self.run()
  211. 365 except KeyboardInterrupt:
  212. 366 pass
  213. 367 except MemoryError:
  214. 368 logging.error("Out of memory. Exiting.")
  215. 369 except SystemExit:
  216. 370 logging.info("Exiting")
  217. Variables:
  218. self = <noc.inv.discovery.daemon.DiscoveryDaemon object at 0x800fc1110>
  219. ------------------------------------------------------------------------
  220. END OF TRACEBACK
  221. 2014-01-31 10:07:28,795 Removing pidfile: /var/run/noc/noc-discovery.pid
  222. 2014-01-31 10:07:28,796 STOP
  223. 2014-01-31 10:07:33,856 [inv.discovery] Running scheduler
  224. 2014-01-31 10:07:33,859 [inv.discovery] Running initial submit for version_inventory
  225. 2014-01-31 10:07:33,887 [inv.discovery] Running initial submit for ip_discovery
  226. 2014-01-31 10:07:33,903 [inv.discovery] Running initial submit for interface_discovery
  227. 2014-01-31 10:07:33,918 [inv.discovery] Running initial submit for mac_discovery
  228. 2014-01-31 10:07:33,977 [inv.discovery] Running initial submit for config_discovery
  229. 2014-01-31 10:07:33,991 [inv.discovery] Running initial submit for id_discovery
  230. 2014-01-31 10:07:34,005 [inv.discovery] Running initial submit for asset_discovery
  231. 2014-01-31 10:07:34,036 [inv.discovery] Scheduling job asset_discovery(8) id=52eb59c6bcf4b1f912a6193e at 2014-01-31 10:18:27.076686
  232. 2014-01-31 10:07:34,051 [inv.discovery] Scheduling job asset_discovery(26) id=52eb59c6bcf4b1f912a6193f at 2014-01-31 10:16:19.927059
  233. 2014-01-31 10:07:34,066 [inv.discovery] Scheduling job asset_discovery(11) id=52eb59c6bcf4b1f912a61940 at 2014-01-31 10:18:14.222485
  234. 2014-01-31 10:07:34,082 [inv.discovery] Scheduling job asset_discovery(13) id=52eb59c6bcf4b1f912a61941 at 2014-01-31 10:20:14.839269
  235. 2014-01-31 10:07:34,096 [inv.discovery] Scheduling job asset_discovery(14) id=52eb59c6bcf4b1f912a61942 at 2014-01-31 10:15:10.132340
  236. 2014-01-31 10:07:34,110 [inv.discovery] Scheduling job asset_discovery(15) id=52eb59c6bcf4b1f912a61943 at 2014-01-31 10:08:34.593731
  237. 2014-01-31 10:07:34,124 [inv.discovery] Scheduling job asset_discovery(16) id=52eb59c6bcf4b1f912a61944 at 2014-01-31 10:14:24.429110
  238. 2014-01-31 10:07:34,125 [inv.discovery] Running initial submit for vlan_discovery
  239. 2014-01-31 10:07:34,161 [inv.discovery] Running job interface_discovery(44 квартал)
  240. 2014-01-31 10:07:34,197 [inv.discovery] Running job interface_discovery(Мелешкина 38)
  241. 2014-01-31 10:07:34,224 [inv.discovery] Running job interface_discovery(Черкасова 25)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement