diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-08-12 08:04:44 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2021-08-12 08:04:44 -0500 |
commit | 94ef913e630426ff255a2090f1f697a937d51b42 (patch) | |
tree | d01281b154d7f964a4742e1a8159ea3a09441603 /src | |
parent | f6385813fb1def519bc9be87e493ea83f1a7059a (diff) | |
download | vyos-1x-94ef913e630426ff255a2090f1f697a937d51b42.tar.gz vyos-1x-94ef913e630426ff255a2090f1f697a937d51b42.zip |
T3697: check config.exists rather than exists_effective
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/ipsec-settings.py | 6 |
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"} |