diff options
author | Christian Breunig <christian@breunig.cc> | 2025-04-25 21:54:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-25 21:54:15 +0200 |
commit | 5490006e7ad81908540c8bf0fef80798f95fe77d (patch) | |
tree | 60bf06fff3d2693798b961b6e921db55df0280b7 | |
parent | 3614f3553cafeab5c6b8b3c9de9601475c99a348 (diff) | |
parent | cce1a98074d944dd5ac1788af943352d512e4479 (diff) | |
download | vyos-1x-5490006e7ad81908540c8bf0fef80798f95fe77d.tar.gz vyos-1x-5490006e7ad81908540c8bf0fef80798f95fe77d.zip |
smoketest: T7400: fix unbound variable when checking VXLAN remote and group settings
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_vxlan.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_vxlan.py b/smoketest/scripts/cli/test_interfaces_vxlan.py index 694c24e4d..132496124 100755 --- a/smoketest/scripts/cli/test_interfaces_vxlan.py +++ b/smoketest/scripts/cli/test_interfaces_vxlan.py @@ -125,19 +125,17 @@ class VXLANInterfaceTest(BasicInterfaceTest.TestCase): 'source-interface eth0', 'vni 60' ] - params = [] for option in options: opts = option.split() - params.append(opts[0]) - self.cli_set(self._base_path + [ intf ] + opts) + self.cli_set(self._base_path + [intf] + opts) - with self.assertRaises(ConfigSessionError) as cm: + # verify() - Both group and remote cannot be specified + with self.assertRaises(ConfigSessionError): self.cli_commit() - exception = cm.exception - self.assertIn('Both group and remote cannot be specified', str(exception)) - for param in params: - self.cli_delete(self._base_path + [intf, param]) + # Remove blocking CLI option + self.cli_delete(self._base_path + [intf, 'group']) + self.cli_commit() def test_vxlan_external(self): |