This has the effect of exposing an new "!other" 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 <ho...@verge.net.au>

---
v2
* No change
---
 lib/ofp-parse.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c
index 7edca38..74d3f72 100644
--- a/lib/ofp-parse.c
+++ b/lib/ofp-parse.c
@@ -1774,6 +1774,9 @@ parse_flow_monitor_request__(struct 
ofputil_flow_monitor_request *fmr,
             fmr->flags &= ~OFPFMF14_INSTRUCTIONS;
         } else if (!strcmp(name, "!own")) {
             fmr->flags |= OFPFMF14_NO_ABBREV;
+        } else if (!strcmp(name, "!other")) {
+            fmr->flags |= OFPFMF14_ONLY_OWN;
+            *usable_protocols &= OFPUTIL_P_OF14_UP;
         } else if (parse_protocol(name, &p)) {
             match_set_dl_type(&fmr->match, htons(p->dl_type));
             if (p->nw_proto) {
-- 
2.0.0.rc2

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to