[ovs-dev] [v3 10/10] ovs-dev.py: add --monitor and -m option

Andy Zhou azhou at nicira.com
Mon Sep 14 22:54:14 UTC 2015


Runs OVSDB server and OVS Vswichd with --monitor option. This features
is useful for testing daemon monitoring, and in conjunction with
--user option.

Signed-off-by: Andy Zhou <azhou at nicira.com>
---
 utilities/ovs-dev.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py
index 45fa38b..4e9c58e 100755
--- a/utilities/ovs-dev.py
+++ b/utilities/ovs-dev.py
@@ -243,6 +243,9 @@ def run():
     if (options.user != "root:root"):
         opts = ["--user", options.user] + opts
 
+    if (options.monitor):
+        opts = ["--monitor"] + opts
+
     _sh(*(["ovsdb-server",
            "--remote=punix:%s/run/db.sock" % RUNDIR,
            "--remote=db:Open_vSwitch,Open_vSwitch,manager_options",
@@ -430,6 +433,8 @@ def main():
                      help="run all daemons as a non root user")
     group.add_option("-u", dest="as_me", action="store_true",
                      help="set --user to the current user")
+    group.add_option("-m", "--monitor", dest="monitor", action="store_true",
+                     help="run daemons with --monitor option")
 
     parser.add_option_group(group)
 
-- 
1.9.1




More information about the dev mailing list