From 2b527f67efef171517e46723a3e0d3f7738c6e04 Mon Sep 17 00:00:00 2001 From: Chia-Lin Cho Date: Sun, 13 Sep 2015 00:59:27 +0800 Subject: [PATCH] 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 Signed-off-by: FUJITA Tomonori --- ryu/topology/switches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):