From e559ff4e552a0959287bee7712d887e754b25fb7 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 1 Feb 2024 17:10:18 +0100 Subject: bfd: T5967: add minimum-ttl option * set protocols bfd peer minimum-ttl <1-254> (partially cherry-picked from 1f07dcbddfcfdbb9079936ec479c5633934dd547) --- smoketest/scripts/cli/test_protocols_bfd.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'smoketest') 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: -- cgit v1.2.3