summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-vxlan.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-16 19:22:03 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-16 19:22:03 +0200
commite91af67ff82a228f3571a60a9037f9ef96c84537 (patch)
tree533512a57561b11281210bdf44a17f493454a088 /src/conf_mode/interfaces-vxlan.py
parent83a2fc901136b9da68f50a5a2c9ae1f45dbf5e97 (diff)
downloadvyos-1x-e91af67ff82a228f3571a60a9037f9ef96c84537.tar.gz
vyos-1x-e91af67ff82a228f3571a60a9037f9ef96c84537.zip
vyos.base: use Warning() helper where applicable
Diffstat (limited to 'src/conf_mode/interfaces-vxlan.py')
-rwxr-xr-xsrc/conf_mode/interfaces-vxlan.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-vxlan.py b/src/conf_mode/interfaces-vxlan.py
index 0a9b51cac..848112c17 100755
--- a/src/conf_mode/interfaces-vxlan.py
+++ b/src/conf_mode/interfaces-vxlan.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 get_interface_dict
from vyos.configdict import leaf_node_changed
@@ -78,7 +79,7 @@ def verify(vxlan):
return None
if int(vxlan['mtu']) < 1500:
- print('WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU')
+ Warning('RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU')
if 'group' in vxlan:
if 'source_interface' not in vxlan: