summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_protocols_babel.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-10-16 17:17:51 +0200
committerGitHub <noreply@github.com>2025-10-16 17:17:51 +0200
commit69a9b93f71c818bf134ea06ad73d86a513628f06 (patch)
tree304a5239108c55882d79d1a1e25246d7f1f6000f /smoketest/scripts/cli/test_protocols_babel.py
parentd8dc670cd3eb7c9d0e41d8211284e1469657cc42 (diff)
parentb221b50a444c3c80f5c322b9c06d4c0288999944 (diff)
downloadvyos-1x-69a9b93f71c818bf134ea06ad73d86a513628f06.tar.gz
vyos-1x-69a9b93f71c818bf134ea06ad73d86a513628f06.zip
Merge pull request #4794 from c-po/reuse-frr-reload-py
frr: T7664: drop BASH/SED implementation in smoketest getFRRconfig()
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_babel.py')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_babel.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/smoketest/scripts/cli/test_protocols_babel.py b/smoketest/scripts/cli/test_protocols_babel.py
index 51fce28e4..cca5b5659 100755
--- a/smoketest/scripts/cli/test_protocols_babel.py
+++ b/smoketest/scripts/cli/test_protocols_babel.py
@@ -17,7 +17,6 @@
import unittest
from base_vyostest_shim import VyOSUnitTestSHIM
-from base_vyostest_shim import CSTORE_GUARD_TIME
from vyos.ifconfig import Section
from vyos.frrender import babel_daemon
@@ -39,8 +38,6 @@ class TestProtocolsBABEL(VyOSUnitTestSHIM.TestCase):
cls.cli_delete(cls, base_path)
cls.cli_delete(cls, ['policy', 'prefix-list'])
cls.cli_delete(cls, ['policy', 'prefix-list6'])
- # Enable CSTORE guard time required by FRR related tests
- cls._commit_guard_time = CSTORE_GUARD_TIME
def tearDown(self):
# always destroy the entire babel configuration to make the processes
@@ -65,7 +62,7 @@ class TestProtocolsBABEL(VyOSUnitTestSHIM.TestCase):
self.cli_commit()
- frrconfig = self.getFRRconfig('router babel', endsection='^exit')
+ frrconfig = self.getFRRconfig('router babel', stop_section='^exit')
self.assertIn(f' babel diversity', frrconfig)
self.assertIn(f' babel diversity-factor {diversity_factor}', frrconfig)
self.assertIn(f' babel resend-delay {resend_delay}', frrconfig)
@@ -84,7 +81,7 @@ class TestProtocolsBABEL(VyOSUnitTestSHIM.TestCase):
self.cli_commit()
- frrconfig = self.getFRRconfig('router babel', endsection='^exit', empty_retry=5)
+ frrconfig = self.getFRRconfig('router babel', stop_section='^exit')
for protocol in ipv4_protos:
self.assertIn(f' redistribute ipv4 {protocol}', frrconfig)
for protocol in ipv6_protos:
@@ -153,7 +150,7 @@ class TestProtocolsBABEL(VyOSUnitTestSHIM.TestCase):
self.cli_commit()
- frrconfig = self.getFRRconfig('router babel', endsection='^exit')
+ frrconfig = self.getFRRconfig('router babel', stop_section='^exit')
self.assertIn(f' distribute-list {access_list_in4} in', frrconfig)
self.assertIn(f' distribute-list {access_list_out4} out', frrconfig)
self.assertIn(f' ipv6 distribute-list {access_list_in6} in', frrconfig)
@@ -201,11 +198,11 @@ class TestProtocolsBABEL(VyOSUnitTestSHIM.TestCase):
self.cli_commit()
- frrconfig = self.getFRRconfig('router babel', endsection='^exit')
+ frrconfig = self.getFRRconfig('router babel', stop_section='^exit')
for interface in self._interfaces:
self.assertIn(f' network {interface}', frrconfig)
- iface_config = self.getFRRconfig(f'interface {interface}', endsection='^exit')
+ iface_config = self.getFRRconfig(f'interface {interface}', stop_section='^exit')
self.assertIn(f' babel channel {channel}', iface_config)
self.assertIn(f' babel enable-timestamps', iface_config)
self.assertIn(f' babel update-interval {def_update_interval}', iface_config)