diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-01 17:10:18 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-02-01 17:10:18 +0100 |
commit | e559ff4e552a0959287bee7712d887e754b25fb7 (patch) | |
tree | 5660de632f0e10430d777b8d17a346c67496713a /smoketest/scripts/cli | |
parent | 1bc8d96f664a92ccfd657ac645c0c329bc720359 (diff) | |
download | vyos-1x-e559ff4e552a0959287bee7712d887e754b25fb7.tar.gz vyos-1x-e559ff4e552a0959287bee7712d887e754b25fb7.zip |
bfd: T5967: add minimum-ttl option
* set protocols bfd peer <x.x.x.x> minimum-ttl <1-254>
(partially cherry-picked from 1f07dcbddfcfdbb9079936ec479c5633934dd547)
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-x | smoketest/scripts/cli/test_protocols_bfd.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_bfd.py b/smoketest/scripts/cli/test_protocols_bfd.py index 46a2bdcfa..7839aee12 100755 --- a/smoketest/scripts/cli/test_protocols_bfd.py +++ b/smoketest/scripts/cli/test_protocols_bfd.py @@ -32,6 +32,7 @@ neighbor_config = { 'intv_rx' : '500', 'intv_tx' : '600', 'multihop' : '', + 'minimum_ttl': '50', 'source_addr': '192.0.2.254', }, '192.0.2.20' : { @@ -86,6 +87,8 @@ class TestProtocolsBFD(VyOSUnitTestSHIM.TestCase): self.cli_set(base_path + ['peer', peer, 'interval', 'transmit', peer_config["intv_tx"]]) if 'multihop' in peer_config: self.cli_set(base_path + ['peer', peer, 'multihop']) + if 'minimum_ttl' in peer_config: + self.cli_set(base_path + ['peer', peer, 'minimum-ttl', peer_config["minimum_ttl"]]) if 'shutdown' in peer_config: self.cli_set(base_path + ['peer', peer, 'shutdown']) if 'source_addr' in peer_config: @@ -112,6 +115,8 @@ class TestProtocolsBFD(VyOSUnitTestSHIM.TestCase): if 'echo_mode' in peer_config: self.assertIn(f' echo-mode', peerconfig) + if 'minimum_ttl' in peer_config: + self.assertIn(f' minimum-ttl {peer_config["minimum_ttl"]}', peerconfig) if 'intv_echo' in peer_config: self.assertIn(f' echo-interval {peer_config["intv_echo"]}', peerconfig) if 'intv_mult' in peer_config: |