From: Andy Zhou Date: Mon, 14 Sep 2015 18:06:59 +0000 (-0700) Subject: ovs-dev.py: add --monitor and option X-Git-Tag: v2.5.0~505 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=bf66c06797b0b03ec72582472d55d72e854eb435 ovs-dev.py: add --monitor and option Runs ovsdb-server and ovs-vswitch with --monitor option. This feature is useful for testing daemon monitoring together with --user option. Signed-off-by: Andy Zhou Acked-by: Joe Stringer --- diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 2f64bc027..e4314c0ef 100755 --- a/utilities/ovs-dev.py +++ b/utilities/ovs-dev.py @@ -240,6 +240,9 @@ def run(): _sh("chown", options.user, "-R", RUNDIR); 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", @@ -425,6 +428,9 @@ def main(): help="Use binaries built by clang") group.add_option("--user", dest="user", action="store", default="", help="run all daemons as a non root user") + group.add_option("--monitor", dest="monitor", action="store_true", + help="run daemons with --monitor option") + parser.add_option_group(group)