[ovs-dev] [PATCH v2 32/47] extract-ofp-msg: Add ONF extension support
Simon Horman
horms at verge.net.au
Tue Jun 10 10:27:36 UTC 2014
This is analogous to Nicira extension support.
This is in preparation for supporting EXT-187: flow entry notification
extension (ONF flow monitor).
Signed-off-by: Simon Horman <horms at verge.net.au>
---
v2
* First post
---
build-aux/extract-ofp-msgs | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs
index 9e82977..256a6c2 100755
--- a/build-aux/extract-ofp-msgs
+++ b/build-aux/extract-ofp-msgs
@@ -15,6 +15,7 @@ VERSION = {"1.0": 0x01,
"1.5": 0x06}
NX_VENDOR_ID = 0x00002320
+ONF_VENDOR_ID = 0x4f4e4600
OFPT_VENDOR = 4
OFPT10_STATS_REQUEST = 16
@@ -160,6 +161,22 @@ def extract_ofp_msgs(output_file_name):
hdrs = (version, OFPT10_STATS_REPLY, number, 0, 0)
else:
hdrs = (version, OFPT11_STATS_REPLY, number, 0, 0)
+ elif type_ == 'ONF':
+ hdrs = (version, OFPT_VENDOR, 0, ONF_VENDOR_ID, number)
+ elif type_ == 'ONFST' and name.endswith('_REQUEST'):
+ if version == VERSION["1.0"]:
+ hdrs = (version, OFPT10_STATS_REQUEST, OFPST_VENDOR,
+ ONF_VENDOR_ID, number)
+ else:
+ hdrs = (version, OFPT11_STATS_REQUEST, OFPST_VENDOR,
+ ONF_VENDOR_ID, number)
+ elif type_ == 'ONFST' and name.endswith('_REPLY'):
+ if version == VERSION["1.0"]:
+ hdrs = (version, OFPT10_STATS_REPLY, OFPST_VENDOR,
+ ONF_VENDOR_ID, number)
+ else:
+ hdrs = (version, OFPT11_STATS_REPLY, OFPST_VENDOR,
+ ONF_VENDOR_ID, number)
elif type_ == 'NXT':
hdrs = (version, OFPT_VENDOR, 0, NX_VENDOR_ID, number)
elif type_ == 'NXST' and name.endswith('_REQUEST'):
--
2.0.0.rc2
More information about the dev
mailing list