summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-07-24 10:41:40 -0500
committerDaniil Baturin <daniil@vyos.io>2021-07-24 10:41:40 -0500
commita374e94a72d64d71761687971de92693cd4e919c (patch)
tree6e8b6a3f6270ceee72fd63424a83095d5abffa66 /src
parentbdfceaaaab1be47002603ed37ec1b4188e4266ce (diff)
downloadvyos-1x-a374e94a72d64d71761687971de92693cd4e919c.tar.gz
vyos-1x-a374e94a72d64d71761687971de92693cd4e919c.zip
T3697: fix a conditional.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/ipsec-settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/ipsec-settings.py b/src/conf_mode/ipsec-settings.py
index fcc19062d..a475ca14a 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 config.exists_effective("vpn ipsec site-to-site peer") or \
+ 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"):
+ config.exists_effective("vpn l2tp remote-access ipsec-settings")):
return {}
data = {"install_routes": "yes"}