diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-06 21:17:42 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-06 21:24:42 +0200 |
commit | c6039b9a82fe8a1752dc82a9834faf3a85b5dd38 (patch) | |
tree | 3ae65c129f46fb2b899b1cc71367967ee64beb9b /smoketest/scripts/cli/base_interfaces_test.py | |
parent | 591eee82296b69b9d8ed49ca28683d0f016c85b8 (diff) | |
download | vyos-1x-c6039b9a82fe8a1752dc82a9834faf3a85b5dd38.tar.gz vyos-1x-c6039b9a82fe8a1752dc82a9834faf3a85b5dd38.zip |
ifconfig: T3806: "ipv6 address no_default_link_local" required for MTU < 1280
This commit also extends the smoketest to verify that the exception for this
error is raised.
(cherry picked from commit 84a429b41175b95634ec9492e0cf3a564a47abdd)
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py index 947162889..4acde99d3 100644 --- a/smoketest/scripts/cli/base_interfaces_test.py +++ b/smoketest/scripts/cli/base_interfaces_test.py @@ -246,11 +246,19 @@ class BasicInterfaceTest: for intf in self._interfaces: base = self._base_path + [intf] self.cli_set(base + ['mtu', self._mtu]) - self.cli_set(base + ['ipv6', 'address', 'no-default-link-local']) for option in self._options.get(intf, []): self.cli_set(base + option.split()) + # check validate() - can not set low MTU if 'no-default-link-local' + # is not set on CLI + with self.assertRaises(ConfigSessionError): + self.cli_commit() + + for intf in self._interfaces: + base = self._base_path + [intf] + self.cli_set(base + ['ipv6', 'address', 'no-default-link-local']) + # commit interface changes self.cli_commit() |