Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com>
---
 ryu/ofproto/ofproto_v1_2.py        | 3 +++
 ryu/ofproto/ofproto_v1_2_parser.py | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/ryu/ofproto/ofproto_v1_2.py b/ryu/ofproto/ofproto_v1_2.py
index 1c8a971..acc4ea7 100644
--- a/ryu/ofproto/ofproto_v1_2.py
+++ b/ryu/ofproto/ofproto_v1_2.py
@@ -348,6 +348,9 @@ OFPFC_MODIFY_STRICT = 2     # Modify entry strictly 
matching wildcards
 OFPFC_DELETE = 3            # Delete all matching flows.
 OFPFC_DELETE_STRICT = 4     # Strictly match wildcards and priority.
 
+# By default, choose a priority in the middle.
+OFP_DEFAULT_PRIORITY = 0x8000
+
 # enum ofp_flow_mod_flags
 OFPFF_SEND_FLOW_REM = 1 << 0    # Send flow removed message when flow
                                 # expires or is deleted.
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py 
b/ryu/ofproto/ofproto_v1_2_parser.py
index 244126c..5c7ba8f 100644
--- a/ryu/ofproto/ofproto_v1_2_parser.py
+++ b/ryu/ofproto/ofproto_v1_2_parser.py
@@ -30,6 +30,7 @@ from ryu.lib.packet import packet
 from ryu import utils
 from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase
 from ryu.ofproto import ether
+from ryu.ofproto import nx_actions
 from ryu.ofproto import ofproto_parser
 from ryu.ofproto import ofproto_v1_2 as ofproto
 
@@ -4669,3 +4670,9 @@ class MTMplsTc(OFPMatchField):
     def __init__(self, header, value, mask=None):
         super(MTMplsTc, self).__init__(header)
         self.value = value
+
+
+nx_actions.generate(
+    'ryu.ofproto.ofproto_v1_2',
+    'ryu.ofproto.ofproto_v1_2_parser'
+)
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to