summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/topology/switches.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py
index 5fe5d264..9622a903 100644
--- a/ryu/topology/switches.py
+++ b/ryu/topology/switches.py
@@ -798,6 +798,7 @@ class Switches(app_manager.RyuApp):
# LOG.debug(" old_peer=%s", old_peer)
if old_peer and old_peer != dst:
old_link = Link(src, old_peer)
+ del self.links[old_link]
self.send_event_to_observers(event.EventLinkDelete(old_link))
link = Link(src, dst)