summaryrefslogtreecommitdiff
path: root/src/op_mode/restart_frr.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-16 23:25:45 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-16 23:28:30 +0200
commitfe0551a8a51da50b78587b808436840934e7bd23 (patch)
tree232c01dbfea1c8258d3d72f4f7e9a387fe2f89d2 /src/op_mode/restart_frr.py
parent8acf3ef56bbce7ec3446143c943045c7a7bfb8de (diff)
downloadvyos-1x-fe0551a8a51da50b78587b808436840934e7bd23.tar.gz
vyos-1x-fe0551a8a51da50b78587b808436840934e7bd23.zip
vyos.base: use Warning() helper for op-mode commands
Diffstat (limited to 'src/op_mode/restart_frr.py')
-rwxr-xr-xsrc/op_mode/restart_frr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op_mode/restart_frr.py b/src/op_mode/restart_frr.py
index e5014452f..91b25567a 100755
--- a/src/op_mode/restart_frr.py
+++ b/src/op_mode/restart_frr.py
@@ -22,6 +22,7 @@ import psutil
from logging.handlers import SysLogHandler
from shutil import rmtree
+from vyos.base import Warning
from vyos.util import call
from vyos.util import ask_yes_no
from vyos.util import process_named_running
@@ -163,7 +164,7 @@ if cmd_args.action == 'restart':
if cmd_args.daemon != ['']:
for daemon in cmd_args.daemon:
if not process_named_running(daemon):
- print('WARNING: some of listed daemons are not running!')
+ Warning('some of listed daemons are not running!')
# run command to restart daemon
for daemon in cmd_args.daemon: