From 3347c72fd5d86df0fa5d63b557c66da3dc503241 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Tue, 23 Jan 2024 12:51:04 +0100 Subject: bfd: T5967: add minimum-ttl option * set protocols bfd peer minimum-ttl <1-254> * set protocols bfd profile minimum-ttl <1-254> (cherry picked from commit 1f07dcbddfcfdbb9079936ec479c5633934dd547) --- src/conf_mode/protocols_bfd.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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']: -- cgit v1.2.3