summaryrefslogtreecommitdiff
path: root/vtep
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@samsung.com>2018-08-01 18:54:22 +0300
committerBen Pfaff <blp@ovn.org>2018-08-06 16:49:42 -0700
commita3241d3ae315fb883b68e5b686cef4856b14e16d (patch)
tree49ba180e0e45ab499030d62584d150965297e462 /vtep
parentb3d7debaab4bf2925e4233fb4e51699789149297 (diff)
downloadopenvswitch-a3241d3ae315fb883b68e5b686cef4856b14e16d.tar.gz
ovs-vtep: Pass log level arguments to underlying utils.
Control utils should be called with the same verbose level at least to manage output to system logs. For example, to disable unwanted syslog messages in unit tests or to enable higher debug levels if needed. New arguments added before '-vconsole:off' because it's still inconvenient to have console output. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'vtep')
-rwxr-xr-xvtep/ovs-vtep.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/vtep/ovs-vtep.in b/vtep/ovs-vtep.in
index 98748e448..338387075 100755
--- a/vtep/ovs-vtep.in
+++ b/vtep/ovs-vtep.in
@@ -39,6 +39,7 @@ root_prefix = ""
__pychecker__ = 'no-reuseattr' # Remove in pychecker >= 0.8.19.
vlog = ovs.vlog.Vlog("ovs-vtep")
+verbose_args = []
exiting = False
ps_name = ""
@@ -53,7 +54,7 @@ bfd_ref = {}
def call_prog(prog, args_list):
- cmd = [prog, "-vconsole:off"] + args_list
+ cmd = [prog] + verbose_args + ["-vconsole:off"] + args_list
creationFlags = 0
if sys.platform == 'win32':
creationFlags = 0x08000000 # CREATE_NO_WINDOW
@@ -728,6 +729,10 @@ def main():
global ps_name
ps_name = args.ps_name
+ global verbose_args
+ if args.verbose:
+ verbose_args = ['-v' + arg for arg in args.verbose]
+
ovs.daemon.daemonize()
ovs.unixctl.command_register("exit", "", 0, 0, unixctl_exit, None)