summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2024-01-16 16:26:26 +0200
committeraapostoliuk <a.apostoliuk@vyos.io>2024-01-16 16:26:26 +0200
commit9f4aee5778eefa0a17d4795430d50e4a046e88b0 (patch)
tree00a407c3dd345b298554f98e9716708e11942109 /data
parent9171b2912a6adbe88de4eeacbcc83cea5c941e48 (diff)
downloadvyos-1x-9f4aee5778eefa0a17d4795430d50e4a046e88b0.tar.gz
vyos-1x-9f4aee5778eefa0a17d4795430d50e4a046e88b0.zip
T4658: Renamed DPD action value from 'hold' to 'trap'
Renamed DPD action value from 'hold' to 'trap'
Diffstat (limited to 'data')
-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 %}