diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-11 22:25:53 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-11 23:01:21 +0200 |
commit | 073961a5c833ca820a197c3635138b14e2b16cd7 (patch) | |
tree | 43949641142fe6b21dc47f43055a2cbcf4247882 /smoketest/scripts/cli/base_interfaces_test.py | |
parent | 63a8d17b89597e990e44f5b0111419778917e689 (diff) | |
download | vyos-1x-073961a5c833ca820a197c3635138b14e2b16cd7.tar.gz vyos-1x-073961a5c833ca820a197c3635138b14e2b16cd7.zip |
ipv6: T5464: add support for per-interface dad (duplicate address detection) setting
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py index cef61e42b..b5b65e253 100644 --- a/smoketest/scripts/cli/base_interfaces_test.py +++ b/smoketest/scripts/cli/base_interfaces_test.py @@ -843,6 +843,7 @@ class BasicInterfaceTest: mss = '1400' dad_transmits = '10' + accept_dad = '0' for interface in self._interfaces: path = self._base_path + [interface] @@ -853,6 +854,9 @@ class BasicInterfaceTest: if cli_defined(self._base_path + ['ipv6'], 'adjust-mss'): self.cli_set(path + ['ipv6', 'adjust-mss', mss]) + if cli_defined(self._base_path + ['ipv6'], 'accept-dad'): + self.cli_set(path + ['ipv6', 'accept-dad', accept_dad]) + if cli_defined(self._base_path + ['ipv6'], 'dup-addr-detect-transmits'): self.cli_set(path + ['ipv6', 'dup-addr-detect-transmits', dad_transmits]) @@ -870,6 +874,10 @@ class BasicInterfaceTest: if line.startswith(base_options): self.assertIn(f'tcp option maxseg size set {mss}', line) + if cli_defined(self._base_path + ['ipv6'], 'accept-dad'): + tmp = read_file(f'{proc_base}/accept_dad') + self.assertEqual(accept_dad, tmp) + if cli_defined(self._base_path + ['ipv6'], 'dup-addr-detect-transmits'): tmp = read_file(f'{proc_base}/dad_transmits') self.assertEqual(dad_transmits, tmp) |