Skip to content

Commit

Permalink
ovs-dev.py: add --monitor and option
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Joe Stringer <[email protected]>
  • Loading branch information
azhou-nicira committed Oct 1, 2015
1 parent c543ef5 commit bf66c06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utilities/ovs-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit bf66c06

Please sign in to comment.