diff options
| author | Daniil Baturin <daniil@baturin.org> | 2019-08-19 12:04:56 -0400 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2019-08-19 12:04:56 -0400 |
| commit | 212348145838e8791474b987efc624cba3fb8b00 (patch) | |
| tree | c4914439531f177fd24fb083b785446f0c35c910 /src/conf_mode/protocols_bfd.py | |
| parent | 589952faadcf7700702b24390c1d654706f3a857 (diff) | |
| parent | dc8cfa6dfd1d95890b3e14c928e3d2064451a851 (diff) | |
| download | vyos-1x-212348145838e8791474b987efc624cba3fb8b00.tar.gz vyos-1x-212348145838e8791474b987efc624cba3fb8b00.zip | |
Merge branch 'current' into equuleus
Diffstat (limited to 'src/conf_mode/protocols_bfd.py')
| -rwxr-xr-x | src/conf_mode/protocols_bfd.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/protocols_bfd.py b/src/conf_mode/protocols_bfd.py index 98f38035a..9ca194edd 100755 --- a/src/conf_mode/protocols_bfd.py +++ b/src/conf_mode/protocols_bfd.py @@ -176,6 +176,10 @@ def verify(bfd): if peer['multihop'] and peer['echo_mode']: raise ConfigError('Multihop and echo-mode cannot be used together') + # multihop doesn't accept interface names + if peer['multihop'] and peer['src_if']: + raise ConfigError('Multihop and source interface cannot be used together') + # echo interval can be configured only with enabled echo-mode if peer['echo_interval'] != '' and not peer['echo_mode']: raise ConfigError('echo-interval can be configured only with enabled echo-mode') |
