ovs-ofctl: Add bundle support and unit testing.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 5 Jun 2015 21:03:12 +0000 (14:03 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 10 Jun 2015 20:19:34 +0000 (13:19 -0700)
commitdb5076eee46e5ad4d67dc02b902c9b4aaeb190a4
tree8e66799be8d2ee8d04158bf63d152b2b35689165
parent4fcb208348e1f6fdc62cc0bcfdcf5b6570ae3f1a
ovs-ofctl: Add bundle support and unit testing.

All existing ovs-ofctl flow mod commands now take an optional
'--bundle' argument, which executes the flow mods as a single
transaction.  OpenFlow 1.4+ is implicitly assumed when '--bundle' is
specified.

ovs-ofctl 'add-flow' and 'add-flows' commands now accept flow
specifications that start with an optional 'add', 'modify', 'delete',
'modify_strict', or 'delete_strict' keyword, so that arbitrary flow
table modifications may be specified.  For backwards compatibility, a
missing keyword is treated as an 'add'.  With the new '--bundle'
option all the modifications are executed as a single transaction
using an OpenFlow 1.4 bundle.

OpenFlow 1.4 requires bundles to support at least flow and port mods.
This implementation does not yet support port mods in bundles.

Another restriction is that the atomic transactions are not yet
supported.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
14 files changed:
NEWS
include/openvswitch/vconn.h
lib/ofp-parse.c
lib/ofp-parse.h
lib/ofp-util.c
lib/ofp-util.h
lib/ofp-version-opt.c
lib/ofp-version-opt.h
lib/vconn.c
tests/ofproto-macros.at
tests/ofproto.at
tests/ovs-ofctl.at
utilities/ovs-ofctl.8.in
utilities/ovs-ofctl.c