diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-16 19:22:03 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-16 19:22:03 +0200 |
commit | e91af67ff82a228f3571a60a9037f9ef96c84537 (patch) | |
tree | 533512a57561b11281210bdf44a17f493454a088 /src/conf_mode/igmp_proxy.py | |
parent | 83a2fc901136b9da68f50a5a2c9ae1f45dbf5e97 (diff) | |
download | vyos-1x-e91af67ff82a228f3571a60a9037f9ef96c84537.tar.gz vyos-1x-e91af67ff82a228f3571a60a9037f9ef96c84537.zip |
vyos.base: use Warning() helper where applicable
Diffstat (limited to 'src/conf_mode/igmp_proxy.py')
-rwxr-xr-x | src/conf_mode/igmp_proxy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/igmp_proxy.py b/src/conf_mode/igmp_proxy.py index fb030c9f3..37df3dc92 100755 --- a/src/conf_mode/igmp_proxy.py +++ b/src/conf_mode/igmp_proxy.py @@ -19,6 +19,7 @@ import os from sys import exit from netifaces import interfaces +from vyos.base import Warning from vyos.config import Config from vyos.configdict import dict_merge from vyos.template import render @@ -92,7 +93,7 @@ def generate(igmp_proxy): # bail out early - service is disabled, but inform user if 'disable' in igmp_proxy: - print('WARNING: IGMP Proxy will be deactivated because it is disabled') + Warning('IGMP Proxy will be deactivated because it is disabled') return None render(config_file, 'igmp-proxy/igmpproxy.conf.tmpl', igmp_proxy) |