From a7ca03799105fcea2bd5675db378e07ed855a13d Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Fri, 4 Jun 2021 23:57:02 +0200 Subject: ipsec: T2816: Fix typo from refactor --- src/conf_mode/vpn_ipsec.py | 4 ++-- 1 file 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 -- cgit v1.2.3