diff options
author | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2013-01-29 15:52:30 -0800 |
---|---|---|
committer | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2013-01-29 15:52:30 -0800 |
commit | d2e06245883e98a1ea8a4940211652f60a6294b3 (patch) | |
tree | 130d01ae0bd96060d1e26475aabe7b79d010f5b6 /templates | |
parent | f985848659239d50f202ca98bdcdb081bd15dbd7 (diff) | |
download | vyatta-op-vpn-d2e06245883e98a1ea8a4940211652f60a6294b3.tar.gz vyatta-op-vpn-d2e06245883e98a1ea8a4940211652f60a6294b3.zip |
Support for reset vpn ipsec-profile
Diffstat (limited to 'templates')
4 files changed, 18 insertions, 0 deletions
diff --git a/templates/reset/vpn/ipsec-profile/node.def b/templates/reset/vpn/ipsec-profile/node.def new file mode 100644 index 0000000..fb5a749 --- /dev/null +++ b/templates/reset/vpn/ipsec-profile/node.def @@ -0,0 +1 @@ +help: Reset all tunnels for given profile diff --git a/templates/reset/vpn/ipsec-profile/node.tag/node.def b/templates/reset/vpn/ipsec-profile/node.tag/node.def new file mode 100644 index 0000000..639fac3 --- /dev/null +++ b/templates/reset/vpn/ipsec-profile/node.tag/node.def @@ -0,0 +1,6 @@ +help: Reset all tunnels for given profile + +allowed: /opt/vyatta/bin/sudo-users/vyatta-dmvpn-op.pl --op=get-all-profiles + +run: /opt/vyatta/bin/sudo-users/vyatta-dmvpn-op.pl \ + --op=clear-tunnels-for-profile --profile="$4" diff --git a/templates/reset/vpn/ipsec-profile/node.tag/tunnel/node.def b/templates/reset/vpn/ipsec-profile/node.tag/tunnel/node.def new file mode 100644 index 0000000..57f4e36 --- /dev/null +++ b/templates/reset/vpn/ipsec-profile/node.tag/tunnel/node.def @@ -0,0 +1 @@ +help: Reset a specific tunnel for given profile diff --git a/templates/reset/vpn/ipsec-profile/node.tag/tunnel/node.tag/node.def b/templates/reset/vpn/ipsec-profile/node.tag/tunnel/node.tag/node.def new file mode 100644 index 0000000..08e299f --- /dev/null +++ b/templates/reset/vpn/ipsec-profile/node.tag/tunnel/node.tag/node.def @@ -0,0 +1,10 @@ +help: Reset a specific tunnel for given profile + +allowed: /opt/vyatta/bin/sudo-users/vyatta-dmvpn-op.pl \ + --op=get-tunnels-for-profile \ + --profile="${COMP_WORDS[COMP_CWORD-2]}" + +run: /opt/vyatta/bin/sudo-users/vyatta-dmvpn-op.pl \ + --op=clear-specific-tunnel-for-profile \ + --profile="$4" \ + --tunnel="$6" |