summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/topology/switches.py2
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):