From 330466f39bd31716a524a01978d8e95514d4eb4b Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 9 Feb 2023 06:50:38 +0000 Subject: vyos.ifconfig: T1579: improve source-validation warning Inform user about the interface where the warning occured. --- python/vyos/ifconfig/interface.py | 4 ++-- 1 file 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: -- cgit v1.2.3