summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl/peer.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-16 16:45:43 +0100
committerGitHub <noreply@github.com>2024-01-16 16:45:43 +0100
commit0249dc59b5adf095d9833cde42d8649ad299d717 (patch)
treed30352b1dd2cf63cfa42e05cab41678239e30ef5 /data/templates/ipsec/swanctl/peer.j2
parent1ced01d23177120b50aa07f627e0b459b2953f9e (diff)
parent9f4aee5778eefa0a17d4795430d50e4a046e88b0 (diff)
downloadvyos-1x-0249dc59b5adf095d9833cde42d8649ad299d717.tar.gz
vyos-1x-0249dc59b5adf095d9833cde42d8649ad299d717.zip
Merge pull request #2837 from aapostoliuk/T4658-circinus
T4658: Renamed DPD action value from 'hold' to 'trap'
Diffstat (limited to 'data/templates/ipsec/swanctl/peer.j2')
-rw-r--r--data/templates/ipsec/swanctl/peer.j26
1 files changed, 2 insertions, 4 deletions
diff --git a/data/templates/ipsec/swanctl/peer.j2 b/data/templates/ipsec/swanctl/peer.j2
index 9d95271fe..86a44a0ff 100644
--- a/data/templates/ipsec/swanctl/peer.j2
+++ b/data/templates/ipsec/swanctl/peer.j2
@@ -83,8 +83,7 @@
start_action = none
{% endif %}
{% if ike.dead_peer_detection is vyos_defined %}
-{% set dpd_translate = {'clear': 'clear', 'hold': 'trap', 'restart': 'restart'} %}
- dpd_action = {{ dpd_translate[ike.dead_peer_detection.action] }}
+ dpd_action = {{ ike.dead_peer_detection.action }}
{% endif %}
close_action = {{ {'none': 'none', 'hold': 'trap', 'restart': 'start'}[ike.close_action] }}
}
@@ -134,8 +133,7 @@
start_action = none
{% endif %}
{% if ike.dead_peer_detection is vyos_defined %}
-{% set dpd_translate = {'clear': 'clear', 'hold': 'trap', 'restart': 'restart'} %}
- dpd_action = {{ dpd_translate[ike.dead_peer_detection.action] }}
+ dpd_action = {{ ike.dead_peer_detection.action }}
{% endif %}
close_action = {{ {'none': 'none', 'hold': 'trap', 'restart': 'start'}[ike.close_action] }}
{% if peer_conf.vti.bind is vyos_defined %}