summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-23 12:51:04 +0100
committerChristian Breunig <christian@breunig.cc>2024-01-23 12:51:04 +0100
commit1f07dcbddfcfdbb9079936ec479c5633934dd547 (patch)
tree62e3ec2eebe3d7b909e7bdd3151fbbbe42e723a7 /src/conf_mode
parent20106f2e827ecfa9dc347d102fe809c736d17a48 (diff)
downloadvyos-1x-1f07dcbddfcfdbb9079936ec479c5633934dd547.tar.gz
vyos-1x-1f07dcbddfcfdbb9079936ec479c5633934dd547.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>
Diffstat (limited to 'src/conf_mode')
-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']: