Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-06-19 13:48:21,639 [inv.discovery: stp_discovery(cct01-laz-2)] Pending link check: cct01-laz-2:8007 -> laz-2-cs3:Gi 2/0/50
- 2014-06-19 13:48:23,242 [inv.discovery: stp_discovery(cct01-laz-2)] UNHANDLED EXCEPTION (2014-06-19 13:48:21.643974)
- Working directory: /opt/noc
- <type 'exceptions.TypeError'>
- getattr(): attribute name must be string
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.6/site-packages/mongoengine/base.py (Line: 1182)
- Function: __contains__
- 1175 # Ensure that the field exists before settings its value
- 1176 if name not in self._fields:
- 1177 raise KeyError(name)
- 1178 return setattr(self, name, value)
- 1179
- 1180 def __contains__(self, name):
- 1181 try:
- 1182 ==> val = getattr(self, name)
- 1183 return val is not None
- 1184 except AttributeError:
- 1185 return False
- 1186
- 1187 def __len__(self):
- 1188 return len(self._data)
- Variables:
- self = <Link: (laz-2-cs3: Gi 2/0/50, cct01-laz-2: Gi 1/0/7)>
- name = <Interface: cct01-laz-2: Gi 1/0/7>
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/jobs/link_discovery.py (Line: 93)
- Function: submit_link
- 86 return
- 87 # Check interfaces can be linked
- 88 if not self.can_link(l_iface) or not self.can_link(r_iface):
- 89 return
- 90 # Check link does not exists
- 91 ll = l_iface.link
- 92 rl = r_iface.link
- 93 ==> if ll and rl and l_iface in rl and r_iface in ll:
- 94 return # Already linked
- 95 # Unlinking existing links
- 96 if ll:
- 97 self.info("Unlinking %s" % ll)
- 98 ll.delete()
- 99 if rl:
- Variables:
- l_iface = <Interface: cct01-laz-2: Gi 1/0/7>
- local_object = <ManagedObject: cct01-laz-2>
- local_interface = 'Gi 1/0/7'
- ll = <Link: (laz-2-cs3: Gi 2/0/50, cct01-laz-2: Gi 1/0/7)>
- self =
- <noc.inv.discovery.jobs.stp_discovery.STPLinkDiscoveryJob object at 0x60ed490>
- r_iface = <Interface: laz-2-cs3: Gi 2/0/50>
- rl = <Link: (laz-2-cs3: Gi 2/0/50, cct01-laz-2: Gi 1/0/7)>
- remote_object = <ManagedObject: laz-2-cs3>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement