diff options
author | Chia-Lin Cho <fox91119@gmail.com> | 2016-01-04 22:59:59 +0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-01-19 10:22:06 +0900 |
commit | beb3353e3977504017011f0d6f561765a95bb187 (patch) | |
tree | b59731439761971b26bff989cd9cc54458ffbce9 | |
parent | ecfd21e5f97294e236db5805f96d7fe44bf75007 (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.py | 1 |
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) |