simple_vlan.py: race condition
When tunnel key is registers, network is is not always registered. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
6dc9cc0d66
commit
2f9b932d5d
@ -199,7 +199,7 @@ class SimpleVLAN(app_manager.RyuApp):
|
||||
def tunnel_key_add_handler(self, ev):
|
||||
self.logger.debug('tunnel_add %s', ev)
|
||||
tunnel_key = ev.tunnel_key
|
||||
for (dpid, port_no) in self.nw.list_ports(ev.network_id):
|
||||
for (dpid, port_no) in self.nw.list_ports_noraise(ev.network_id):
|
||||
dp = self.dpset.get(dpid)
|
||||
if dp is None:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user