summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChia-Lin Cho <fox91119@gmail.com>2016-01-04 22:59:59 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-19 10:22:06 +0900
commitbeb3353e3977504017011f0d6f561765a95bb187 (patch)
treeb59731439761971b26bff989cd9cc54458ffbce9
parentecfd21e5f97294e236db5805f96d7fe44bf75007 (diff)
Remove old link when link updates
Signed-off-by: Chia-Lin Cho <fox91119@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-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)