summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-23 13:32:56 +0100
committerGitHub <noreply@github.com>2024-01-23 13:32:56 +0100
commit4276133800e9aa5d5fb5a17faad77b185a68c7c3 (patch)
treea191540ad17fc60f9d3083df444a27bfc8ff6c4b /src/conf_mode
parent280cb292d169dedf45ab231a0ae2d37ee1504dee (diff)
parent3347c72fd5d86df0fa5d63b557c66da3dc503241 (diff)
downloadvyos-1x-4276133800e9aa5d5fb5a17faad77b185a68c7c3.tar.gz
vyos-1x-4276133800e9aa5d5fb5a17faad77b185a68c7c3.zip
Merge pull request #2885 from vyos/mergify/bp/sagitta/pr-2884
bfd: T5967: add minimum-ttl option (backport #2884)
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']: