summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_bfd.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-23 12:51:04 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-23 11:58:15 +0000
commit3347c72fd5d86df0fa5d63b557c66da3dc503241 (patch)
treea191540ad17fc60f9d3083df444a27bfc8ff6c4b /src/conf_mode/protocols_bfd.py
parent280cb292d169dedf45ab231a0ae2d37ee1504dee (diff)
downloadvyos-1x-3347c72fd5d86df0fa5d63b557c66da3dc503241.tar.gz
vyos-1x-3347c72fd5d86df0fa5d63b557c66da3dc503241.zip
bfd: T5967: add minimum-ttl option
* set protocols bfd peer <x.x.x.x> minimum-ttl <1-254> * set protocols bfd profile <name> minimum-ttl <1-254> (cherry picked from commit 1f07dcbddfcfdbb9079936ec479c5633934dd547)
Diffstat (limited to 'src/conf_mode/protocols_bfd.py')
-rwxr-xr-xsrc/conf_mode/protocols_bfd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_bfd.py b/src/conf_mode/protocols_bfd.py
index dab784662..37421efb4 100755
--- a/src/conf_mode/protocols_bfd.py
+++ b/src/conf_mode/protocols_bfd.py
@@ -72,6 +72,9 @@ def verify(bfd):
if 'source' in peer_config and 'interface' in peer_config['source']:
raise ConfigError('BFD multihop and source interface cannot be used together')
+ if 'minimum_ttl' in peer_config and 'multihop' not in peer_config:
+ raise ConfigError('Minimum TTL is only available for multihop BFD sessions!')
+
if 'profile' in peer_config:
profile_name = peer_config['profile']
if 'profile' not in bfd or profile_name not in bfd['profile']: