diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-05-21 16:13:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-21 16:13:30 +0200 |
| commit | 036c1dc949815fddd71c03b09f579623b5b76bff (patch) | |
| tree | 92b54988510ae7d7cde316f86b81f5473c5e87ac /smoketest/scripts/cli | |
| parent | 097573dda926df118532f7479e1244b7d7a83e08 (diff) | |
| parent | ff96f5895e87db7fc20cff9960a8cdea42c033d0 (diff) | |
| download | vyos-1x-036c1dc949815fddd71c03b09f579623b5b76bff.tar.gz vyos-1x-036c1dc949815fddd71c03b09f579623b5b76bff.zip | |
Merge pull request #5210 from sever-sever/T8822
T8822: Add BFD strict mode for BGP
Diffstat (limited to 'smoketest/scripts/cli')
| -rwxr-xr-x | smoketest/scripts/cli/test_protocols_bgp.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bgp.py b/smoketest/scripts/cli/test_protocols_bgp.py index c2a6f3dd1..c7c0dc6f0 100755 --- a/smoketest/scripts/cli/test_protocols_bgp.py +++ b/smoketest/scripts/cli/test_protocols_bgp.py @@ -1707,6 +1707,19 @@ class TestProtocolsBGP(VyOSUnitTestSHIM.TestCase): self.cli_commit() + def test_bgp_32_bfd_strict(self): + neighbor = '192.0.2.22' + bfd_hold_time = '23' + + self.cli_set(base_path + ['neighbor', neighbor, 'remote-as', ASN]) + self.cli_set(base_path + ['neighbor', neighbor, 'bfd', 'strict', 'hold-time', bfd_hold_time]) + + self.cli_commit() + + frrconfig = self.getFRRconfig(f'router bgp {ASN}', stop_section='^exit') + self.assertIn(f'router bgp {ASN}', frrconfig) + self.assertIn(f' neighbor {neighbor} bfd strict hold-time {bfd_hold_time}', frrconfig) + def test_bgp_99_bmp(self): target_name = 'instance-bmp' target_address = '127.0.0.1' |
