summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/vpn/ipsec/profile/node.tag/bind/tunnel/node.def4
-rw-r--r--templates/vpn/node.def1
2 files changed, 1 insertions, 4 deletions
diff --git a/templates/vpn/ipsec/profile/node.tag/bind/tunnel/node.def b/templates/vpn/ipsec/profile/node.tag/bind/tunnel/node.def
index cf3568b..a04f8cb 100644
--- a/templates/vpn/ipsec/profile/node.tag/bind/tunnel/node.def
+++ b/templates/vpn/ipsec/profile/node.tag/bind/tunnel/node.def
@@ -8,7 +8,3 @@ commit:expression: $VAR(../../ike-group/) != ""; "Must configure ike-group"
commit:expression: $VAR(../../authentication/) != ""; "Must configure authentication"
commit:expression: (`cli-shell-api returnValue interfaces tunnel $VAR(@) encapsulation` == "gre" && \
`cli-shell-api returnValue interfaces tunnel $VAR(@) remote-ip` == ""); "Must be mgre tunnel"
-
-end:
-
- sudo /opt/vyatta/sbin/vyos-update-nhrp.pl --set_ipsec
diff --git a/templates/vpn/node.def b/templates/vpn/node.def
index c504aaa..7c6b56a 100644
--- a/templates/vpn/node.def
+++ b/templates/vpn/node.def
@@ -5,6 +5,7 @@ end:sudo /opt/vyatta/sbin/vyatta-vti-config.pl || exit 1
--config_file='/etc/dmvpn.conf' \
--secrets_file='/etc/dmvpn.secrets' \
--init_script='/etc/init.d/ipsec' || exit 1
+ sudo /opt/vyatta/sbin/vyos-update-nhrp.pl --set_ipsec || exit 1
sudo /opt/vyatta/sbin/vpn-config.pl \
--config_file='/etc/ipsec.conf' \
--secrets_file='/etc/ipsec.secrets' \