Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r 3fdf7ba71c24 inv/discovery/jobs/link_discovery.py
- --- a/inv/discovery/jobs/link_discovery.py Sun Jun 15 11:03:51 2014 +0400
- +++ b/inv/discovery/jobs/link_discovery.py Sun Jun 15 11:48:13 2014 +0400
- @@ -39,7 +39,8 @@
- """
- Check interface can be linked
- """
- - return not iface.is_linked
- + #return not iface.is_linked
- + return True
- def submit_candidate(self, local_interface,
- remote_object, remote_interface=None):
- @@ -91,6 +92,13 @@
- rl = r_iface.link
- if ll and rl and l_iface in rl and r_iface in ll:
- return # Already linked
- + # Unlinking existing links
- + if ll:
- + self.info("Unlinking %s" % ll)
- + ll.delete()
- + if rl:
- + self.info("Unlinking %s" % rl)
- + rl.delete()
- # Link objects
- self.info("Linking %s and %s" % (l_iface, r_iface))
- try:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement