Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-01-31 10:07:28,778 UNHANDLED EXCEPTION (2014-01-31 10:07:28.325953)
- Working directory: /usr/local/noc
- <type 'exceptions.UnicodeEncodeError'>
- 'ascii' codec can't encode characters in position 4700-4706: ordinal not in range(128)
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/fileutils.py (Line: 41)
- Function: safe_rewrite
- 34 """
- 35 d = os.path.dirname(path)
- 36 if d and not os.path.exists(d):
- 37 os.makedirs(d)
- 38 b = os.path.basename(path)
- 39 h, p = tempfile.mkstemp(suffix=".tmp", prefix=b, dir=d)
- 40 f = os.fdopen(h, "w")
- 41 ==> f.write(text)
- 42 f.close()
- 43 if os.path.exists(path):
- 44 os.unlink(path)
- 45 os.link(p, path)
- 46 os.unlink(p)
- 47 if mode:
- Variables:
- b = '57'
- d = '/tmp/jobs/interface_discovery'
- f = <open file '<fdopen>', mode 'w' at 0x809e91f60>
- h = 11
- p = '/tmp/jobs/interface_discovery/5719IAe1.tmp'
- mode = None
- text =
- 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'
- path = '/tmp/jobs/interface_discovery/57'
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 294)
- Function: _complete_job
- 287 job.on_failure()
- 288 s = job.S_FAILED
- 289 self._complete_job(job, s, tb)
- 290
- 291 def _complete_job(self, job, status, tb):
- 292 if self.to_log_jobs:
- 293 path = os.path.join(self.log_jobs, job.name, str(job.key))
- 294 ==> safe_rewrite(path, job.get_job_log())
- 295 group = job.get_group()
- 296 if group is not None:
- 297 with self.running_lock:
- 298 self.running_count[group] -= 1
- 299 if not self.running_count[group]:
- 300 del self.running_count[group]
- Variables:
- status = 'X'
- path = '/tmp/jobs/interface_discovery/57'
- job =
- <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
- tb =
- 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'
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 289)
- Function: _job_wrapper
- 282 else:
- 283 self.info("Job %s(%s) is failed (%fsec)" % (
- 284 job.name, job.get_display_key(),
- 285 time.time() - t0
- 286 ))
- 287 job.on_failure()
- 288 s = job.S_FAILED
- 289 ==> self._complete_job(job, s, tb)
- 290
- 291 def _complete_job(self, job, status, tb):
- 292 if self.to_log_jobs:
- 293 path = os.path.join(self.log_jobs, job.name, str(job.key))
- 294 safe_rewrite(path, job.get_job_log())
- 295 group = job.get_group()
- Variables:
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
- job =
- <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
- t0 = 1391155647.398984
- s = 'X'
- kwargs = repr() failed
- tb =
- 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'
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 261)
- Function: _run_job_handler
- 254 if job.threaded:
- 255 t = threading.Thread(target=self._job_wrapper,
- 256 args=(job,), kwargs=kwargs
- 257 )
- 258 t.daemon = True
- 259 t.start()
- 260 else:
- 261 ==> return self._job_wrapper(job, **kwargs)
- 262
- 263 def _job_wrapper(self, job, **kwargs):
- 264 tb = None
- 265 t0 = time.time()
- 266 try:
- 267 r = job.handler(**kwargs)
- Variables:
- job =
- <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
- kwargs = repr() failed
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 327)
- Function: complete_mrt_job
- 320 self.reschedule_job(job_name, key, ts, skip_running=True)
- 321
- 322 def complete_mrt_job(self, t):
- 323 job = self.active_mrt.pop(t)
- 324 for m in t.maptask_set.all():
- 325 if m.status == "C":
- 326 self._run_job_handler(job, object=m.managed_object,
- 327 ==> result=m.script_result)
- 328 else:
- 329 self.info("Job %s(%s) is failed" % (
- 330 job.name, job.get_display_key()))
- 331 self._complete_job(job, self.S_FAIL, m.script_result)
- 332 t.delete()
- 333
- Variables:
- job =
- <noc.inv.discovery.jobs.interface_discovery.InterfaceDiscoveryJob object at 0x809ea7f50>
- m = <MapTask: 9164652: 17 квартал DLink.DxS_Cisco_CLI.get_interfaces>
- t = <ReduceTask: 9122069>
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 361)
- Function: run_pending
- 354 # Reschedule initial submit
- 355 self.initial_submit_next_check[jcls] = (
- 356 t0 + jcls.initial_submit_interval)
- 357 # Check for complete MRT
- 358 if self.active_mrt:
- 359 complete = [t for t in self.active_mrt if t.complete]
- 360 for t in complete:
- 361 ==> self.complete_mrt_job(t)
- 362 self.active_mrt = dict(
- 363 (t, self.active_mrt[t])
- 364 for t in self.active_mrt if t not in complete)
- 365 # Check for pending persistent tasks
- 366 q = {
- 367 self.ATTR_TS: {"$lte": datetime.datetime.now()},
- Variables:
- complete =
- [<ReduceTask: New: 34526777104>,
- <ReduceTask: 9122069>,
- <ReduceTask: 9122074>,
- <ReduceTask: 9122075>,
- <ReduceTask: 9122079>,
- <ReduceTask: 9122080>,
- <ReduceTask: 9122081>,
- <ReduceTask: 9122093>,
- <ReduceTask: 9122098>]
- jcls = <class 'noc.inv.discovery.jobs.vlan_discovery.VLANDiscoveryJob'>
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
- t0 = 1391155646.811024
- n = 0
- t = <ReduceTask: 9122069>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/scheduler/scheduler.py (Line: 420)
- Function: run
- 413 self.ATTR_STATUS: self.S_RUN
- 414 }, {
- 415 "$set": {self.ATTR_STATUS: self.S_WAIT}
- 416 }, multi=True, safe=True)
- 417 self.ensure_indexes()
- 418 self.info("Running scheduler")
- 419 while True:
- 420 ==> if not self.run_pending():
- 421 time.sleep(1)
- 422 else:
- 423 self.cleanup()
- 424
- 425 def wipe(self):
- 426 """
- Variables:
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x808918d10>
- ------------------------------------------------------------------------
- File: /usr/local/noc/inv/discovery/daemon.py (Line: 36)
- Function: run
- 29
- 30 def run(self):
- 31 try:
- 32 PerformanceReportJob.submit(self.scheduler,
- 33 key="performance_report", interval=60)
- 34 except self.scheduler.JobExists:
- 35 pass
- 36 ==> self.scheduler.run()
- 37
- 38 def load_config(self):
- 39 super(DiscoveryDaemon, self).load_config()
- 40 self.load_beef_map()
- 41 log_jobs = self.config.get("main", "log_jobs") or None
- 42 self.scheduler.set_job_log(log_jobs)
- Variables:
- self = <noc.inv.discovery.daemon.DiscoveryDaemon object at 0x800fc1110>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/daemon.py (Line: 364)
- Function: guarded_run
- 357
- 358 def guarded_run(self):
- 359 """
- 360 Run daemon and catch common exceptions
- 361 :return:
- 362 """
- 363 try:
- 364 ==> self.run()
- 365 except KeyboardInterrupt:
- 366 pass
- 367 except MemoryError:
- 368 logging.error("Out of memory. Exiting.")
- 369 except SystemExit:
- 370 logging.info("Exiting")
- Variables:
- self = <noc.inv.discovery.daemon.DiscoveryDaemon object at 0x800fc1110>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2014-01-31 10:07:28,795 Removing pidfile: /var/run/noc/noc-discovery.pid
- 2014-01-31 10:07:28,796 STOP
- 2014-01-31 10:07:33,856 [inv.discovery] Running scheduler
- 2014-01-31 10:07:33,859 [inv.discovery] Running initial submit for version_inventory
- 2014-01-31 10:07:33,887 [inv.discovery] Running initial submit for ip_discovery
- 2014-01-31 10:07:33,903 [inv.discovery] Running initial submit for interface_discovery
- 2014-01-31 10:07:33,918 [inv.discovery] Running initial submit for mac_discovery
- 2014-01-31 10:07:33,977 [inv.discovery] Running initial submit for config_discovery
- 2014-01-31 10:07:33,991 [inv.discovery] Running initial submit for id_discovery
- 2014-01-31 10:07:34,005 [inv.discovery] Running initial submit for asset_discovery
- 2014-01-31 10:07:34,036 [inv.discovery] Scheduling job asset_discovery(8) id=52eb59c6bcf4b1f912a6193e at 2014-01-31 10:18:27.076686
- 2014-01-31 10:07:34,051 [inv.discovery] Scheduling job asset_discovery(26) id=52eb59c6bcf4b1f912a6193f at 2014-01-31 10:16:19.927059
- 2014-01-31 10:07:34,066 [inv.discovery] Scheduling job asset_discovery(11) id=52eb59c6bcf4b1f912a61940 at 2014-01-31 10:18:14.222485
- 2014-01-31 10:07:34,082 [inv.discovery] Scheduling job asset_discovery(13) id=52eb59c6bcf4b1f912a61941 at 2014-01-31 10:20:14.839269
- 2014-01-31 10:07:34,096 [inv.discovery] Scheduling job asset_discovery(14) id=52eb59c6bcf4b1f912a61942 at 2014-01-31 10:15:10.132340
- 2014-01-31 10:07:34,110 [inv.discovery] Scheduling job asset_discovery(15) id=52eb59c6bcf4b1f912a61943 at 2014-01-31 10:08:34.593731
- 2014-01-31 10:07:34,124 [inv.discovery] Scheduling job asset_discovery(16) id=52eb59c6bcf4b1f912a61944 at 2014-01-31 10:14:24.429110
- 2014-01-31 10:07:34,125 [inv.discovery] Running initial submit for vlan_discovery
- 2014-01-31 10:07:34,161 [inv.discovery] Running job interface_discovery(44 квартал)
- 2014-01-31 10:07:34,197 [inv.discovery] Running job interface_discovery(Мелешкина 38)
- 2014-01-31 10:07:34,224 [inv.discovery] Running job interface_discovery(Черкасова 25)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement