summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-16 17:10:30 +0100
committerGitHub <noreply@github.com>2024-01-16 17:10:30 +0100
commit6c39a9cb6df6bb56c02583f82d68edc8ef17241d (patch)
tree7caace527a75d93adca7bbe5bebfbea240055d4e /data/templates/ipsec/swanctl
parentb452211624184f320524ba360815a94b0f4380b0 (diff)
parent3e35719a272956a16171e889e5dc0c8a3b47977e (diff)
downloadvyos-1x-6c39a9cb6df6bb56c02583f82d68edc8ef17241d.tar.gz
vyos-1x-6c39a9cb6df6bb56c02583f82d68edc8ef17241d.zip
Merge pull request #2838 from vyos/mergify/bp/sagitta/pr-2837
T4658: Renamed DPD action value from 'hold' to 'trap' (backport #2837)
Diffstat (limited to 'data/templates/ipsec/swanctl')
-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 %}