summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-wireguard.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-16 15:10:13 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-16 15:29:28 +0100
commit452a9c504f472dcaee8c93947a889dab4f8259ce (patch)
treecc8ca551378550087c052da5de2bbbe850cb797f /src/conf_mode/interfaces-wireguard.py
parent0ee4ed4ab400474e29a9f0e4e608a68050255f38 (diff)
downloadvyos-1x-452a9c504f472dcaee8c93947a889dab4f8259ce.tar.gz
vyos-1x-452a9c504f472dcaee8c93947a889dab4f8259ce.zip
vyos.configdict: node_changed() now accepts key mangling parameter
Diffstat (limited to 'src/conf_mode/interfaces-wireguard.py')
-rwxr-xr-xsrc/conf_mode/interfaces-wireguard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-wireguard.py b/src/conf_mode/interfaces-wireguard.py
index 7cfc76aa0..3e6320f02 100755
--- a/src/conf_mode/interfaces-wireguard.py
+++ b/src/conf_mode/interfaces-wireguard.py
@@ -58,7 +58,7 @@ def get_config(config=None):
# Determine which Wireguard peer has been removed.
# Peers can only be removed with their public key!
dict = {}
- tmp = node_changed(conf, ['peer'])
+ tmp = node_changed(conf, ['peer'], key_mangling=('-', '_'))
for peer in (tmp or []):
pubkey = leaf_node_changed(conf, ['peer', peer, 'pubkey'])
if pubkey: