diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-23 12:57:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 12:57:38 +0100 |
commit | 4c2d4519277bc4cbe964a37160b93c31cdc77309 (patch) | |
tree | 62e3ec2eebe3d7b909e7bdd3151fbbbe42e723a7 /src | |
parent | 20106f2e827ecfa9dc347d102fe809c736d17a48 (diff) | |
parent | 1f07dcbddfcfdbb9079936ec479c5633934dd547 (diff) | |
download | vyos-1x-4c2d4519277bc4cbe964a37160b93c31cdc77309.tar.gz vyos-1x-4c2d4519277bc4cbe964a37160b93c31cdc77309.zip |
Merge pull request #2884 from c-po/bfd-T5967
bfd: T5967: add minimum-ttl option
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/protocols_bfd.py | 3 |
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']: |