summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-08-12 08:04:44 -0500
committerDaniil Baturin <daniil@vyos.io>2021-08-12 08:04:44 -0500
commit94ef913e630426ff255a2090f1f697a937d51b42 (patch)
treed01281b154d7f964a4742e1a8159ea3a09441603
parentf6385813fb1def519bc9be87e493ea83f1a7059a (diff)
downloadvyos-1x-94ef913e630426ff255a2090f1f697a937d51b42.tar.gz
vyos-1x-94ef913e630426ff255a2090f1f697a937d51b42.zip
T3697: check config.exists rather than exists_effective
-rwxr-xr-xsrc/conf_mode/ipsec-settings.py6
1 files 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"}