From 94ef913e630426ff255a2090f1f697a937d51b42 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 12 Aug 2021 08:04:44 -0500 Subject: T3697: check config.exists rather than exists_effective --- src/conf_mode/ipsec-settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf_mode/ipsec-settings.py b/src/conf_mode/ipsec-settings.py index 7ba2284d8..7ca2d9b44 100755 --- a/src/conf_mode/ipsec-settings.py +++ b/src/conf_mode/ipsec-settings.py @@ -49,9 +49,9 @@ def get_config(config=None): # IPsec isn't configured enough to warrant starting StrongSWAN for it, # it's just some incomplete or leftover options. - if not (config.exists_effective("vpn ipsec site-to-site peer") or \ - config.exists_effective("vpn ipsec profile") or \ - config.exists_effective("vpn l2tp remote-access ipsec-settings")): + if not (config.exists("vpn ipsec site-to-site peer") or \ + config.exists("vpn ipsec profile") or \ + config.exists("vpn l2tp remote-access ipsec-settings")): return {} data = {"install_routes": "yes"} -- cgit v1.2.3