summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_bfd.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-04 07:21:24 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-04 07:37:55 +0100
commit86df16c3b3055b82f3e0a9e705794302fa2df257 (patch)
tree31995f05c795ccdcfb653d22d0ba3b86c6efb638 /src/conf_mode/protocols_bfd.py
parent2b8d9131d6c32b52b4dde42e663ac8518d955852 (diff)
downloadvyos-1x-86df16c3b3055b82f3e0a9e705794302fa2df257.tar.gz
vyos-1x-86df16c3b3055b82f3e0a9e705794302fa2df257.zip
bfd: T3310: add key_mangling option when calling get_config_dict()
Diffstat (limited to 'src/conf_mode/protocols_bfd.py')
-rwxr-xr-xsrc/conf_mode/protocols_bfd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_bfd.py b/src/conf_mode/protocols_bfd.py
index 94825ba10..1f8e4ddc6 100755
--- a/src/conf_mode/protocols_bfd.py
+++ b/src/conf_mode/protocols_bfd.py
@@ -33,7 +33,8 @@ def get_config(config=None):
else:
conf = Config()
base = ['protocols', 'bfd']
- bfd = conf.get_config_dict(base, get_first_key=True)
+ bfd = conf.get_config_dict(base, key_mangling=('-', '_'),
+ get_first_key=True)
# Bail out early if configuration tree does not exist
if not conf.exists(base):
return bfd