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>
This commit is contained in:
Chia-Lin Cho 2015-09-13 00:59:27 +08:00 committed by FUJITA Tomonori
parent 4c6b03ab02
commit 2b527f67ef
1 changed files with 1 additions and 1 deletions

View File

@ -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):