diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-06-22 14:59:27 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-06-22 14:59:27 +0200 |
commit | 67a35cfc37a5cc34a1b874f69626802ec3d35f94 (patch) | |
tree | 712b134de9d867b8c0249b6df97719e8bc9e989a /src/conf_mode/protocols_bfd.py | |
parent | 4e4b945b6b88308fe8938663ad12efebf98e08fd (diff) | |
download | vyos-1x-67a35cfc37a5cc34a1b874f69626802ec3d35f94.tar.gz vyos-1x-67a35cfc37a5cc34a1b874f69626802ec3d35f94.zip |
bfd: T1183: multihop doesn't accept interface names
Diffstat (limited to 'src/conf_mode/protocols_bfd.py')
-rwxr-xr-x | src/conf_mode/protocols_bfd.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_bfd.py b/src/conf_mode/protocols_bfd.py index 96a41de11..3d60f5358 100755 --- a/src/conf_mode/protocols_bfd.py +++ b/src/conf_mode/protocols_bfd.py @@ -111,7 +111,12 @@ def verify(bfd): # IPv6 peers require an explicit local address/interface combination if vyos.validate.is_ipv6(peer['remote']): if not (peer['src_if'] and peer['src_addr']): - raise ConfigError("BFD IPv6 peers require explicit local address/interface setting") + raise ConfigError('BFD IPv6 peers require explicit local address/interface setting') + + # multihop doesn't accept interface names + if peer['multihop'] and peer['src_if']: + raise ConfigError('multihop does not accept interface names') + return None |