summaryrefslogtreecommitdiff
path: root/src/conf_mode/wireguard.py
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-07-09 09:58:16 -0700
committerDaniil Baturin <daniil@baturin.org>2019-07-11 19:08:14 +0200
commit1725f958cf28578583a49462d0a9ebc707978fb3 (patch)
tree98933668e957af62a01321cf2b7d9facbed3c315 /src/conf_mode/wireguard.py
parentdff8ab9d27726d380eb3d5eb8e4262929903e948 (diff)
downloadvyos-1x-1725f958cf28578583a49462d0a9ebc707978fb3.tar.gz
vyos-1x-1725f958cf28578583a49462d0a9ebc707978fb3.zip
[wireguard] - T1516: changing committed config causes error
Diffstat (limited to 'src/conf_mode/wireguard.py')
-rwxr-xr-xsrc/conf_mode/wireguard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/wireguard.py b/src/conf_mode/wireguard.py
index e893dba47..169d57800 100755
--- a/src/conf_mode/wireguard.py
+++ b/src/conf_mode/wireguard.py
@@ -221,7 +221,7 @@ def apply(c):
### config updates
if c['interfaces'][intf]['status'] == 'exists':
### IP address change
- addr_eff = re.sub("\'", "", c_eff.return_effective_values(intf + ' address')).split()
+ addr_eff = c_eff.return_effective_values(intf + ' address')
addr_rem = list(set(addr_eff) - set(c['interfaces'][intf]['addr']))
addr_add = list(set(c['interfaces'][intf]['addr']) - set(addr_eff))