summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/interface.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-09 06:50:38 +0000
committerChristian Breunig <christian@breunig.cc>2023-02-09 06:50:40 +0000
commit330466f39bd31716a524a01978d8e95514d4eb4b (patch)
tree210bf7cb9f68aaf664af85d8d0edc91cd4b2cc45 /python/vyos/ifconfig/interface.py
parente22e9c9210cb561fc6062ff5b1048e64cdc85c36 (diff)
downloadvyos-1x-330466f39bd31716a524a01978d8e95514d4eb4b.tar.gz
vyos-1x-330466f39bd31716a524a01978d8e95514d4eb4b.zip
vyos.ifconfig: T1579: improve source-validation warning
Inform user about the interface where the warning occured.
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r--python/vyos/ifconfig/interface.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index c50ead89f..795df2462 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -751,8 +751,8 @@ class Interface(Control):
elif all_rp_filter == 2: global_setting = 'loose'
from vyos.base import Warning
- Warning(f'Global source-validation is set to "{global_setting} '\
- f'this overrides per interface setting!')
+ Warning(f'Global source-validation is set to "{global_setting}", this '\
+ f'overrides per interface setting on "{self.ifname}"!')
tmp = self.get_interface('rp_filter')
if int(tmp) == value: