[ovs-dev] [PATCH 26/32] ofp-parse: Allow parsing of flow monitor request's out_group
Simon Horman
horms at verge.net.au
Mon Jun 9 03:54:22 UTC 2014
This has the effect of exposing an out_group argument to
ovs-ofctl's monitor subcommand for use with OpenFlow1.4+.
A subsequent patch will update the documentation for ovs-ofctl.
Signed-off-by: Simon Horman <horms at verge.net.au>
---
lib/ofp-parse.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c
index ef677dd..7edca38 100644
--- a/lib/ofp-parse.c
+++ b/lib/ofp-parse.c
@@ -1794,6 +1794,13 @@ parse_flow_monitor_request__(struct ofputil_flow_monitor_request *fmr,
}
} else if (!strcmp(name, "out_port")) {
fmr->out_port = u16_to_ofp(atoi(value));
+ } else if (!strcmp(name, "out_group")) {
+ char *error;
+ error = str_to_group_id(value, &fmr->out_group, false, name);
+ if (error) {
+ return error;
+ }
+ *usable_protocols &= OFPUTIL_P_OF14_UP;
} else if (mf_from_name(name)) {
char *error;
--
2.0.0.rc2
More information about the dev
mailing list