summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_protocols_babel.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-13 13:57:14 +0100
committerChristian Breunig <christian@breunig.cc>2024-12-16 22:24:50 +0100
commit90e9aa9df41c3b99f9f1421227a1f1474622b918 (patch)
treefe046cf9358c4258faf00910401783ddfaf26747 /smoketest/scripts/cli/test_protocols_babel.py
parente803c5e1a8828a1a3f8fb2c15b9ddbc232e12eea (diff)
downloadvyos-1x-90e9aa9df41c3b99f9f1421227a1f1474622b918.tar.gz
vyos-1x-90e9aa9df41c3b99f9f1421227a1f1474622b918.zip
frr: T6746: add guard time after cli_commit() and before getFRRconfig()
As vyos-configd will take care about the commit via FRRender class, and FRR needs to internally process the configuration we might read it back via vtysh "to fast". Add a 5 seconds guard timer after each cli_commit() and before calling getFRRconfig(). Guard timer is reset every time, cli_commit() is called.
Diffstat (limited to 'smoketest/scripts/cli/test_protocols_babel.py')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_babel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_protocols_babel.py b/smoketest/scripts/cli/test_protocols_babel.py
index 7a79c7b9e..107e262cc 100755
--- a/smoketest/scripts/cli/test_protocols_babel.py
+++ b/smoketest/scripts/cli/test_protocols_babel.py
@@ -105,7 +105,7 @@ class TestProtocolsBABEL(VyOSUnitTestSHIM.TestCase):
self.cli_commit()
- frrconfig = self.getFRRconfig('router babel', endsection='^exit', daemon=babel_daemon)
+ frrconfig = self.getFRRconfig('router babel', endsection='^exit', daemon=babel_daemon, empty_retry=5)
for protocol in ipv4_protos:
self.assertIn(f' redistribute ipv4 {protocol}', frrconfig)
for protocol in ipv6_protos: