<[email protected]>From
7d365e5756d6462c81cb46e99d070708fb170543 Mon Sep 17 00:00:00 2001
From: Gal Sagie <[email protected]>
Date: Thu, 25 Jun 2015 08:28:38 +0300
Subject: [PATCH] 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 <[email protected]>
---
ryu/ofproto/ofproto_v1_3.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py
index f6da98a..f8ae5b4 100644
--- a/ryu/ofproto/ofproto_v1_3.py
+++ b/ryu/ofproto/ofproto_v1_3.py
@@ -1199,6 +1199,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__)
--
2.1.0
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel