When tunnel key is registers, network is is not always
registered.

Signed-off-by: Isaku Yamahata <[email protected]>
---
Changes v2 -> v3:
- use list_ports_noraise()
---
 ryu/app/simple_vlan.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ryu/app/simple_vlan.py b/ryu/app/simple_vlan.py
index 373649c..a337789 100644
--- a/ryu/app/simple_vlan.py
+++ b/ryu/app/simple_vlan.py
@@ -201,7 +201,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
-- 
1.7.10.4


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to