summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2012-04-04 18:37:49 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2012-05-01 08:38:52 +0900
commit72bb1a1e855ef40fba83a4acaedd3c4a0c636032 (patch)
treea3ff5dcb030fb535dda6952c5f6a13843be8519a
parentd107e8e962d76a70108004897501ed8810301edb (diff)
ofproto/ofproto_v1_0: more constants for nx
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_0.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_0.py b/ryu/ofproto/ofproto_v1_0.py
index fd272a39..068770cd 100644
--- a/ryu/ofproto/ofproto_v1_0.py
+++ b/ryu/ofproto/ofproto_v1_0.py
@@ -232,8 +232,14 @@ OFP_ACTION_PACK_STR = '!H'
# assert calcsize(OFP_ACTION_PACK_STR) == OFP_ACTION_SIZE
# enum nx_action_subtype (truncated)
+NXAST_RESUBMIT = 1
NXAST_SET_TUNNEL = 2
NXAST_SET_TUNNEL64 = 9
+NXAST_RESUBMIT_TABLE = 14
+
+NX_ACTION_RESUBMIT_PACK_STR = '!HHIHHB3x'
+NX_ACTION_RESUBMIT_SIZE = 16
+assert calcsize(NX_ACTION_RESUBMIT_PACK_STR) == NX_ACTION_RESUBMIT_SIZE
NX_ACTION_SET_TUNNEL_PACK_STR = '!HHIH2xI'
NX_ACTION_SET_TUNNEL_SIZE = 16
@@ -506,6 +512,7 @@ NX_VENDOR_ID = 0x00002320
# enum nicira_type (abridged)
NXT_SET_FLOW_FORMAT = 12
NXT_FLOW_MOD = 13
+NXT_FLOW_MOD_TABLE_ID = 15
# enum nx_flow_format
NXFF_OPENFLOW10 = 0
@@ -526,6 +533,11 @@ NX_SET_FLOW_FORMAT_SIZE = 20
assert (calcsize(NX_SET_FLOW_FORMAT_PACK_STR) +
NICIRA_HEADER_SIZE == NX_SET_FLOW_FORMAT_SIZE)
+NX_FLOW_MOD_TABLE_ID_PACK_STR = '!B7x'
+NX_FLOW_MOD_TABLE_ID_SIZE = 24
+assert (calcsize(NX_FLOW_MOD_TABLE_ID_PACK_STR) +
+ NICIRA_HEADER_SIZE == NX_FLOW_MOD_TABLE_ID_SIZE)
+
def nxm_header__(vendor, field, hasmask, length):
return (vendor << 16) | (field << 9) | (hasmask << 8) | length