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