Advertisement
Guest User

Untitled

a guest
Jun 24th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff -r 2d9faaeaf076 inv/discovery/jobs/stp_discovery.py
  2. --- a/inv/discovery/jobs/stp_discovery.py Fri Jun 20 23:52:16 2014 +0400
  3. +++ b/inv/discovery/jobs/stp_discovery.py Tue Jun 24 15:58:25 2014 +0400
  4. @@ -66,3 +66,13 @@
  5. else:
  6. self.debug("Designated port %s is not found in %s" % (
  7. local_port_id, ", ".join(self.desg_port_id.keys())))
  8. +
  9. + def resolve_self_links(self, object):
  10. + if object in self.candidates:
  11. + sl = set()
  12. + for l, r in self.candidates[object]:
  13. + if (l and r and l != r and (l, r) not in sl
  14. + and (r, l) not in sl):
  15. + sl.add((l, r))
  16. + for l, r in sl:
  17. + self.submit_link(object, l, object, self.desg_port_id[r])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement