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:
parent
4c6b03ab02
commit
2b527f67ef
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user