diff options
author | Chia-Lin Cho <fox91119@gmail.com> | 2015-09-13 00:59:27 +0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-09-15 17:00:46 +0900 |
commit | 2b527f67efef171517e46723a3e0d3f7738c6e04 (patch) | |
tree | a7694181674b4aa50097a24ddbbba6e09a136691 | |
parent | 4c6b03ab02edd528ed0523a658b2dbe372905c51 (diff) |
topology: Fixed conditional statement
_is_edge_port(port) in switches.py will return `False` if the port belongs to link.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index af4bf80e..f4198389 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -805,7 +805,7 @@ class Switches(app_manager.RyuApp): # remove hosts from edge port for host in self.hosts.values(): - if self._is_edge_port(host.port): + if not self._is_edge_port(host.port): del self.hosts[host.mac] if not self.links.update_link(src, dst): |