summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl.conf.tmpl
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-06-12 23:18:19 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2021-06-12 23:18:19 +0200
commit0b1695221657336b436fc27217614b07a34cc132 (patch)
tree672b02505f606d14d92e9cc6ac805c30788d37c9 /data/templates/ipsec/swanctl.conf.tmpl
parent5d687daba3a33e7619d4ec8cc08792e6c2bfa0c7 (diff)
downloadvyos-1x-0b1695221657336b436fc27217614b07a34cc132.tar.gz
vyos-1x-0b1695221657336b436fc27217614b07a34cc132.zip
ipsec: T57: Support disable on peer, tunnel, dmvpn profile
Diffstat (limited to 'data/templates/ipsec/swanctl.conf.tmpl')
-rw-r--r--data/templates/ipsec/swanctl.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/ipsec/swanctl.conf.tmpl b/data/templates/ipsec/swanctl.conf.tmpl
index 0ce703f20..ce007c1fd 100644
--- a/data/templates/ipsec/swanctl.conf.tmpl
+++ b/data/templates/ipsec/swanctl.conf.tmpl
@@ -2,7 +2,7 @@
{% if profile is defined %}
connections {
-{% for name, profile_conf in profile.items() if "bind" in profile_conf and "tunnel" in profile_conf.bind %}
+{% for name, profile_conf in profile.items() if profile_conf.disable is not defined and profile_conf.bind is defined and profile_conf.bind.tunnel is defined %}
{% set dmvpn_ike = ike_group[profile_conf.ike_group] %}
{% set dmvpn_esp = esp_group[profile_conf.esp_group] %}
{% for interface in profile_conf.bind.tunnel %}
@@ -41,7 +41,7 @@ connections {
}
secrets {
-{% for name, profile_conf in profile.items() if "bind" in profile_conf and "tunnel" in profile_conf.bind %}
+{% for name, profile_conf in profile.items() if profile_conf.disable is not defined and profile_conf.bind is defined and profile_conf.bind.tunnel is defined %}
{% if profile_conf.authentication.mode == 'pre-shared-secret' %}
{% for interface in profile_conf.bind.tunnel %}
ike-dmvpn-{{ interface }} {