summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_interfaces_test.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-06 20:25:02 +0200
committerGitHub <noreply@github.com>2023-09-06 20:25:02 +0200
commite0825b52df4a2a4ce6d137bb8adc553f6e71fc0b (patch)
tree997c774d1d77276337d51a7e6431074bbcc28eb4 /smoketest/scripts/cli/base_interfaces_test.py
parente208d75edd79f5b8637276c27f23ee21fd423d06 (diff)
parentbe3d2f9f6623396f2e9c6543f67d81161c7ad94b (diff)
downloadvyos-1x-e0825b52df4a2a4ce6d137bb8adc553f6e71fc0b.tar.gz
vyos-1x-e0825b52df4a2a4ce6d137bb8adc553f6e71fc0b.zip
Merge pull request #2208 from sarthurdev/T5550
interface: T5550: Interface source-validation priority over global value
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index 820024dc9..51ccbc9e6 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -834,8 +834,12 @@ class BasicInterfaceTest:
self.assertEqual('1', tmp)
if cli_defined(self._base_path + ['ip'], 'source-validation'):
- tmp = read_file(f'{proc_base}/rp_filter')
- self.assertEqual('2', tmp)
+ base_options = f'iifname "{interface}"'
+ out = cmd('sudo nft list chain ip raw vyos_rpfilter')
+ for line in out.splitlines():
+ if line.startswith(base_options):
+ self.assertIn('fib saddr oif 0', line)
+ self.assertIn('drop', line)
def test_interface_ipv6_options(self):
if not self._test_ipv6: