Signed-off-by: Isaku Yamahata <[email protected]>
---
Changes v2 -> v3:
- new patch
---
ryu/controller/network.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ryu/controller/network.py b/ryu/controller/network.py
index 01fa727..2908c40 100644
--- a/ryu/controller/network.py
+++ b/ryu/controller/network.py
@@ -322,6 +322,12 @@ class Network(app_manager.RyuApp):
def list_ports(self, network_id):
return self.networks.list_ports(network_id)
+ def list_ports_noraise(self, network_id):
+ try:
+ return self.list_ports(network_id)
+ except NetworkNotFound:
+ return []
+
def _update_port(self, network_id, dpid, port, port_may_exist):
def _known_nw_id(nw_id):
return nw_id is not None and nw_id != self.nw_id_unknown
--
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