summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl/peer.j2
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2024-01-16 16:26:26 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-16 15:46:28 +0000
commit3e35719a272956a16171e889e5dc0c8a3b47977e (patch)
tree7caace527a75d93adca7bbe5bebfbea240055d4e /data/templates/ipsec/swanctl/peer.j2
parentb452211624184f320524ba360815a94b0f4380b0 (diff)
downloadvyos-1x-3e35719a272956a16171e889e5dc0c8a3b47977e.tar.gz
vyos-1x-3e35719a272956a16171e889e5dc0c8a3b47977e.zip
T4658: Renamed DPD action value from 'hold' to 'trap'
Renamed DPD action value from 'hold' to 'trap' (cherry picked from commit 9f4aee5778eefa0a17d4795430d50e4a046e88b0)
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 %}