summaryrefslogtreecommitdiff
path: root/tests/test-bitmap.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-bitmap.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-bitmap.c')
-rw-r--r--tests/test-bitmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-bitmap.c b/tests/test-bitmap.c
index 3dbc8df6f..484407b7d 100644
--- a/tests/test-bitmap.c
+++ b/tests/test-bitmap.c
@@ -149,9 +149,9 @@ run_benchmarks(struct ovs_cmdl_context *ctx)
}
static const struct ovs_cmdl_command commands[] = {
- {"check", NULL, 0, 0, run_tests},
- {"benchmark", NULL, 1, 1, run_benchmarks},
- {NULL, NULL, 0, 0, NULL},
+ {"check", NULL, 0, 0, run_tests, OVS_RO},
+ {"benchmark", NULL, 1, 1, run_benchmarks, OVS_RO},
+ {NULL, NULL, 0, 0, NULL, OVS_RO},
};
static void