summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-05 08:26:13 +0200
committerGitHub <noreply@github.com>2021-06-05 08:26:13 +0200
commit71313fb44520799faf5f87cbd9d53635368446e4 (patch)
treeeefe6a93e6e85039522d0f986d3c504a8b0b954e /src
parent31d58e7d038ddf176c3fa9647e687939f6d02646 (diff)
parenta7ca03799105fcea2bd5675db378e07ed855a13d (diff)
downloadvyos-1x-71313fb44520799faf5f87cbd9d53635368446e4.tar.gz
vyos-1x-71313fb44520799faf5f87cbd9d53635368446e4.zip
Merge pull request #866 from sarthurdev/fix-ipsec
ipsec: T2816: Fix typo from refactor
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/vpn_ipsec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/vpn_ipsec.py b/src/conf_mode/vpn_ipsec.py
index c57697a8f..fb49f0105 100755
--- a/src/conf_mode/vpn_ipsec.py
+++ b/src/conf_mode/vpn_ipsec.py
@@ -321,8 +321,8 @@ def generate(ipsec):
data['marks'][vti_interface] = get_mark(vti_interface)
else:
for tunnel, tunnel_conf in peer_conf['tunnel'].items():
- local_prefix = dict_search('local.prefix', tunnel_conf['local']['prefix'])
- remote_prefix = dict_search('remote.prefix', tunnel_conf['remote']['prefix'])
+ local_prefix = dict_search('local.prefix', tunnel_conf)
+ remote_prefix = dict_search('remote.prefix', tunnel_conf)
if not local_prefix or not remote_prefix:
continue