diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-13 10:31:48 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-13 10:33:43 +0200 |
commit | 50c0bc7b2582618fe340b0ca2da1087933e0c6be (patch) | |
tree | 25d6ecb684aceb89ee6951fb178267ba37e69225 /smoketest/scripts/cli/test_protocols_isis.py | |
parent | 191c8c40023e615f11418013eb8678e8166373d6 (diff) | |
download | vyos-1x-50c0bc7b2582618fe340b0ca2da1087933e0c6be.tar.gz vyos-1x-50c0bc7b2582618fe340b0ca2da1087933e0c6be.zip |
smoketest: T5467: verify OSPF(v3) interface removal in VRF context
Testcases after the bugfix in commit 011697508 ("T5467: removing ospf(v3) or
isis interface in VRF context did not clear FRR config").
For ISIS change in the tests - do not run self_commit() in a for loop if not
really necessary, this will slow down the tests.
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_isis.py')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_isis.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/smoketest/scripts/cli/test_protocols_isis.py b/smoketest/scripts/cli/test_protocols_isis.py index 511a5eb8b..5ab7fae14 100755 --- a/smoketest/scripts/cli/test_protocols_isis.py +++ b/smoketest/scripts/cli/test_protocols_isis.py @@ -295,9 +295,10 @@ class TestProtocolsISIS(VyOSUnitTestSHIM.TestCase): for interface in self._interfaces: self.cli_set(base_path + ['interface', interface, 'ldp-sync', 'holddown', holddown]) - # Commit interface changes for holddown - self.cli_commit() + # Commit interface changes for holddown + self.cli_commit() + for interface in self._interfaces: # Verify interface changes for holddown tmp = self.getFRRconfig(f'interface {interface}', daemon='isisd') self.assertIn(f'interface {interface}', tmp) @@ -308,9 +309,10 @@ class TestProtocolsISIS(VyOSUnitTestSHIM.TestCase): for interface in self._interfaces: self.cli_set(base_path + ['interface', interface, 'ldp-sync', 'disable']) - # Commit interface changes for disable - self.cli_commit() + # Commit interface changes for disable + self.cli_commit() + for interface in self._interfaces: # Verify interface changes for disable tmp = self.getFRRconfig(f'interface {interface}', daemon='isisd') self.assertIn(f'interface {interface}', tmp) |