summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGal Sagie <gal.sagie@gmail.com>2015-07-05 08:08:47 +0300
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-07-05 20:14:23 +0900
commit625aefffa2686b138d20ce629a6939aad27a1976 (patch)
tree7d25ebfd6379b103216fde3646268c68160db691
parent2cc542c4d7cab7684f1704735fff8bc84d53f17b (diff)
Add registers 1-7 as nicira extensions for matching and setting
This patch adds the ability to match and set registers 1-7 in openflow. Verified to work with OVS 2.3.1 Signed-off-by: Gal Sagie <gal.sagie@huawei.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_3.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py
index 80916ec2..3e7a17ee 100644
--- a/ryu/ofproto/ofproto_v1_3.py
+++ b/ryu/ofproto/ofproto_v1_3.py
@@ -1200,6 +1200,15 @@ oxm_types = [
# Prefix the name with '_' to indicate this is not intended to be used
# in wild.
oxm_fields.NiciraExperimenter('_dp_hash', 0, type_desc.Int4),
+
+ # Support for matching/setting NX registers 1-7
+ oxm_fields.NiciraExtended1('reg1', 1, type_desc.Int4),
+ oxm_fields.NiciraExtended1('reg2', 2, type_desc.Int4),
+ oxm_fields.NiciraExtended1('reg3', 3, type_desc.Int4),
+ oxm_fields.NiciraExtended1('reg4', 4, type_desc.Int4),
+ oxm_fields.NiciraExtended1('reg5', 5, type_desc.Int4),
+ oxm_fields.NiciraExtended1('reg6', 6, type_desc.Int4),
+ oxm_fields.NiciraExtended1('reg7', 7, type_desc.Int4),
]
oxm_fields.generate(__name__)