summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-10 19:59:11 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-10 19:59:59 +0100
commit7ae854213536413362a8226f218d9219e6fe3869 (patch)
tree8f5d7abfd985ad8ccf03f1d36fb79828515aa757 /smoketest/scripts/cli
parentfc7b8a225879a216788b68fefba5390e9d9f0ee4 (diff)
downloadvyos-1x-7ae854213536413362a8226f218d9219e6fe3869.tar.gz
vyos-1x-7ae854213536413362a8226f218d9219e6fe3869.zip
smoketest: interfaces: bugfix loop iteration - same config set multiple times
(cherry picked from commit 7f665a92b3ad3978b17153726de23c80ba97c4b7)
Diffstat (limited to 'smoketest/scripts/cli')
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index a4a3e7f3a..4092b0f49 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -171,10 +171,10 @@ class BasicInterfaceTest:
def test_add_multiple_ip_addresses(self):
# Add address
for intf in self._interfaces:
+ for option in self._options.get(intf, []):
+ self.cli_set(self._base_path + [intf] + option.split())
for addr in self._test_addr:
self.cli_set(self._base_path + [intf, 'address', addr])
- for option in self._options.get(intf, []):
- self.cli_set(self._base_path + [intf] + option.split())
self.cli_commit()