summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-06 21:17:42 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-06 21:20:34 +0200
commit84a429b41175b95634ec9492e0cf3a564a47abdd (patch)
treef644bdd5fa3951a9fd8dcf526ef861bd0e74c8e5 /smoketest
parent90b9eeacfb626a82c842815371c32435bdf395a7 (diff)
downloadvyos-1x-84a429b41175b95634ec9492e0cf3a564a47abdd.tar.gz
vyos-1x-84a429b41175b95634ec9492e0cf3a564a47abdd.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.
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py10
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 edb604dbf..6a5b9c4ee 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()