summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-17 02:17:13 +0200
committerGitHub <noreply@github.com>2019-08-17 02:17:13 +0200
commit652cb0bb710f26afcad9babaeb9572f03c42f9cc (patch)
tree03c61203e21b0a1aefc887efe5576472548af3d0 /src/conf_mode
parent58c5a7e668d0131de50e6f9711f029f9ff4a02ab (diff)
parent6492541b2ee3f7f246682d27974670bd6fbdacbe (diff)
downloadvyos-1x-652cb0bb710f26afcad9babaeb9572f03c42f9cc.tar.gz
vyos-1x-652cb0bb710f26afcad9babaeb9572f03c42f9cc.zip
Merge pull request #105 from zdc/T1183
[bfd] T1183: Added validations and fixing bugs in BFD
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/protocols_bfd.py4
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')