summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/vpn/ipsec/site-to-site/peer/node.tag/ike-group/node.def3
-rw-r--r--templates/vpn/ipsec/site-to-site/peer/node.tag/tunnel/node.tag/esp-group/node.def3
2 files changed, 6 insertions, 0 deletions
diff --git a/templates/vpn/ipsec/site-to-site/peer/node.tag/ike-group/node.def b/templates/vpn/ipsec/site-to-site/peer/node.tag/ike-group/node.def
index 2610ddd..9be5411 100644
--- a/templates/vpn/ipsec/site-to-site/peer/node.tag/ike-group/node.def
+++ b/templates/vpn/ipsec/site-to-site/peer/node.tag/ike-group/node.def
@@ -1,2 +1,5 @@
help: Set Internet Key Exchange (IKE) group name
type: txt
+allowed: local -a ike_grps
+ ike_grps=( /opt/vyatta/config/active/vpn/ipsec/ike-group/* )
+ echo -n ${ike_grps[@]##*/}
diff --git a/templates/vpn/ipsec/site-to-site/peer/node.tag/tunnel/node.tag/esp-group/node.def b/templates/vpn/ipsec/site-to-site/peer/node.tag/tunnel/node.tag/esp-group/node.def
index e6fe3b9..4c64105 100644
--- a/templates/vpn/ipsec/site-to-site/peer/node.tag/tunnel/node.tag/esp-group/node.def
+++ b/templates/vpn/ipsec/site-to-site/peer/node.tag/tunnel/node.tag/esp-group/node.def
@@ -1,2 +1,5 @@
help: Set ESP group name
type: txt
+allowed: local -a esp_grps
+ esp_grps=( /opt/vyatta/config/active/vpn/ipsec/esp-group/* )
+ echo -n ${esp_grps[@]##*/}