summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_bfd.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-04 07:23:14 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-04 07:37:55 +0100
commit63cadf52a4b8d8aa31a868c4b19e44a9eff12d37 (patch)
treec24a00cc6822eab7fe3c27f412533037b0e9448c /src/conf_mode/protocols_bfd.py
parent86df16c3b3055b82f3e0a9e705794302fa2df257 (diff)
downloadvyos-1x-63cadf52a4b8d8aa31a868c4b19e44a9eff12d37.tar.gz
vyos-1x-63cadf52a4b8d8aa31a868c4b19e44a9eff12d37.zip
bfd: T4044: add VRF support for peers
Diffstat (limited to 'src/conf_mode/protocols_bfd.py')
-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 1f8e4ddc6..6981d0db1 100755
--- a/src/conf_mode/protocols_bfd.py
+++ b/src/conf_mode/protocols_bfd.py
@@ -18,6 +18,7 @@ import os
from vyos.config import Config
from vyos.configdict import dict_merge
+from vyos.configverify import verify_vrf
from vyos.template import is_ipv6
from vyos.template import render_to_string
from vyos.validate import is_ipv6_link_local
@@ -83,6 +84,9 @@ def verify(bfd):
if 'source' in peer_config and 'interface' in peer_config['source']:
raise ConfigError('Multihop and source interface cannot be used together')
+ if 'vrf' in peer_config:
+ verify_vrf(peer_config)
+
return None
def generate(bfd):