summaryrefslogtreecommitdiff
path: root/tests/test-cmap.c
diff options
context:
space:
mode:
authorRyan Moats <rmoats@us.ibm.com>2016-08-15 18:47:29 +0000
committerBen Pfaff <blp@ovn.org>2016-08-15 17:26:15 -0700
commit1f4a7252d9e7ee102b76325daca2b7007e5da7f7 (patch)
treeedcbbe2a8bc31820cdc030a852598ef935ee0199 /tests/test-cmap.c
parent239fa5bbe6e54abcec9b58b137a566d06edaba49 (diff)
downloadopenvswitch-1f4a7252d9e7ee102b76325daca2b7007e5da7f7.tar.gz
Add read-only option to ovs-dpctl and ovs-ofctl commands.
ovs-dpctl and ovs-ofctl lack a read-only option to prevent running of commands that perform read-write operations. Add it and the necessary scaffolding to each. Signed-off-by: Ryan Moats <rmoats@us.ibm.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests/test-cmap.c')
-rw-r--r--tests/test-cmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-cmap.c b/tests/test-cmap.c
index 4cac7de9e..e159a164f 100644
--- a/tests/test-cmap.c
+++ b/tests/test-cmap.c
@@ -636,9 +636,9 @@ benchmark_hmap(void)
}
static const struct ovs_cmdl_command commands[] = {
- {"check", NULL, 0, 1, run_tests},
- {"benchmark", NULL, 3, 4, run_benchmarks},
- {NULL, NULL, 0, 0, NULL},
+ {"check", NULL, 0, 1, run_tests, OVS_RO},
+ {"benchmark", NULL, 3, 4, run_benchmarks, OVS_RO},
+ {NULL, NULL, 0, 0, NULL, OVS_RO},
};
static void