summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_vyostest_shim.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-15 18:20:56 +0100
committerGitHub <noreply@github.com>2023-11-15 18:20:56 +0100
commite085f3e6c21a41beee2c23d8525c2029a8e0b250 (patch)
tree45e69238955233a365fccf25bdc82334ebcb527e /smoketest/scripts/cli/base_vyostest_shim.py
parent0cc409787389abda7bab36932e13683cedb3223c (diff)
parent64b4cfc71d402222fd6b034336b3588b5986ba24 (diff)
downloadvyos-1x-e085f3e6c21a41beee2c23d8525c2029a8e0b250.tar.gz
vyos-1x-e085f3e6c21a41beee2c23d8525c2029a8e0b250.zip
Merge pull request #2476 from c-po/frr-pim-T5733
pim(6): T5733: add missing FRR related features
Diffstat (limited to 'smoketest/scripts/cli/base_vyostest_shim.py')
-rw-r--r--smoketest/scripts/cli/base_vyostest_shim.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/base_vyostest_shim.py b/smoketest/scripts/cli/base_vyostest_shim.py
index f694f539d..140642806 100644
--- a/smoketest/scripts/cli/base_vyostest_shim.py
+++ b/smoketest/scripts/cli/base_vyostest_shim.py
@@ -78,9 +78,10 @@ class VyOSUnitTestSHIM:
while run(f'sudo lsof -nP {commit_lock}') == 0:
sleep(0.250)
- def getFRRconfig(self, string, end='$', endsection='^!', daemon=''):
+ def getFRRconfig(self, string=None, end='$', endsection='^!', daemon=''):
""" Retrieve current "running configuration" from FRR """
- command = f'vtysh -c "show run {daemon} no-header" | sed -n "/^{string}{end}/,/{endsection}/p"'
+ command = f'vtysh -c "show run {daemon} no-header"'
+ if string: command += f' | sed -n "/^{string}{end}/,/{endsection}/p"'
out = cmd(command)
if self.debug:
import pprint