Signed-off-by: Shinpei Muraoka <[email protected]>
---
 ryu/ofproto/nx_actions.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ryu/ofproto/nx_actions.py b/ryu/ofproto/nx_actions.py
index 74ca14a..cabbe3b 100644
--- a/ryu/ofproto/nx_actions.py
+++ b/ryu/ofproto/nx_actions.py
@@ -608,7 +608,7 @@ def generate(ofp_name, ofpp_name):
 
         def __init__(self,
                      table_id,
-                     specs,
+                     specs=None,
                      idle_timeout=0,
                      hard_timeout=0,
                      priority=ofp.OFP_DEFAULT_PRIORITY,
@@ -626,7 +626,11 @@ def generate(ofp_name, ofpp_name):
             self.table_id = table_id
             self.fin_idle_timeout = fin_idle_timeout
             self.fin_hard_timeout = fin_hard_timeout
-            self.specs = specs
+
+            if specs == None:
+                self.specs = []
+            else:
+                self.specs = specs
 
         @classmethod
         def parser(cls, buf):
-- 
1.9.1


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to