mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
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>
This commit is contained in:
@@ -120,7 +120,7 @@ struct ctl_command_syntax {
|
||||
* empty string if the command does not support any options. */
|
||||
const char *options;
|
||||
|
||||
enum { RO, RW } mode; /* Does this command modify the database? */
|
||||
enum { RO, RW } mode; /* Does this command modify the database? */
|
||||
};
|
||||
|
||||
/* A command extracted from command-line input plus the structs for
|
||||
|
Reference in New Issue
Block a user