summaryrefslogtreecommitdiff
path: root/templates/vpn
diff options
context:
space:
mode:
authorKim Hagen <khagen@multi-development.com>2015-02-16 08:34:18 +0100
committerKim Hagen <khagen@multi-development.com>2015-02-16 08:34:18 +0100
commit2e30fd044c830bddae7e4951b46b2346d7e3fbc0 (patch)
tree9033fce3191fe2837c13b60b800a4c47a80334fe /templates/vpn
parent6d36ea1fce45ec0cf4e085b5e8c441fd71659f54 (diff)
downloadvyatta-cfg-vpn-2e30fd044c830bddae7e4951b46b2346d7e3fbc0.tar.gz
vyatta-cfg-vpn-2e30fd044c830bddae7e4951b46b2346d7e3fbc0.zip
Move execution of nhrp script to "end" of ipsec config so it executes on all changes made
to the ipsec config
Diffstat (limited to 'templates/vpn')
-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' \