summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl/peer.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-21 19:11:05 +0100
committerGitHub <noreply@github.com>2022-02-21 19:11:05 +0100
commita88cd9b621fcb1696fe529eea48d6977478932ed (patch)
treebc01b664933a85987820f388933416059796e52f /data/templates/ipsec/swanctl/peer.tmpl
parent9c66ff6c11cf865d424f3643a3d01bb6362b901d (diff)
parent4ec6262629393bd8a88951970c367a5cc3d57a42 (diff)
downloadvyos-1x-a88cd9b621fcb1696fe529eea48d6977478932ed.tar.gz
vyos-1x-a88cd9b621fcb1696fe529eea48d6977478932ed.zip
Merge pull request #1231 from sever-sever/T3948
ipsec: T3948: Add CLI site-to-site peer connection-type none
Diffstat (limited to 'data/templates/ipsec/swanctl/peer.tmpl')
-rw-r--r--data/templates/ipsec/swanctl/peer.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl/peer.tmpl b/data/templates/ipsec/swanctl/peer.tmpl
index f4e28d818..673dc3375 100644
--- a/data/templates/ipsec/swanctl/peer.tmpl
+++ b/data/templates/ipsec/swanctl/peer.tmpl
@@ -77,6 +77,8 @@
start_action = start
{% elif peer_conf.connection_type == 'respond' %}
start_action = trap
+{% elif peer_conf.connection_type == 'none' %}
+ start_action = none
{% endif %}
{% if ike.dead_peer_detection is defined %}
{% set dpd_translate = {'clear': 'clear', 'hold': 'trap', 'restart': 'start'} %}
@@ -119,6 +121,8 @@
start_action = start
{% elif peer_conf.connection_type == 'respond' %}
start_action = trap
+{% elif peer_conf.connection_type == 'none' %}
+ start_action = none
{% endif %}
{% if ike.dead_peer_detection is defined %}
{% set dpd_translate = {'clear': 'clear', 'hold': 'trap', 'restart': 'start'} %}