diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-11 06:41:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 06:41:17 +0100 |
commit | 68bacdc20c10566671ce809e9668ca27666bca22 (patch) | |
tree | 105a4f0cb3570f3e70770d3859f93ec6ea1c8e4e /smoketest/scripts/cli/base_interfaces_test.py | |
parent | 942f4cf77dbacc09393b577c2122e403fd788194 (diff) | |
parent | e8070a2e36e9101d52d7db4025f7ff37a00625e8 (diff) | |
download | vyos-1x-68bacdc20c10566671ce809e9668ca27666bca22.tar.gz vyos-1x-68bacdc20c10566671ce809e9668ca27666bca22.zip |
Merge pull request #2793 from sarthurdev/T5550_sagitta
interface: T5550: Interface source-validation priority over global value (backport)
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 8 |
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 366d71abd..a40b762a8 100644 --- a/smoketest/scripts/cli/base_interfaces_test.py +++ b/smoketest/scripts/cli/base_interfaces_test.py @@ -841,8 +841,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: |