From c425fce1762cffbf727b1d9bf8a40b08ddfdbb88 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 18 Aug 2011 19:23:11 -0500 Subject: Move 'clear vrrp' to 'reset vrrp' (cherry picked from commit ad977c6e06a54fedba9381a476514f694b67405d) --- templates/reset/vrrp/master/interface/node.def | 2 ++ templates/reset/vrrp/master/interface/node.tag/group/node.def | 1 + templates/reset/vrrp/master/interface/node.tag/group/node.tag/node.def | 3 +++ templates/reset/vrrp/master/interface/node.tag/node.def | 2 ++ templates/reset/vrrp/master/node.def | 1 + templates/reset/vrrp/node.def | 1 + 6 files changed, 10 insertions(+) create mode 100644 templates/reset/vrrp/master/interface/node.def create mode 100644 templates/reset/vrrp/master/interface/node.tag/group/node.def create mode 100644 templates/reset/vrrp/master/interface/node.tag/group/node.tag/node.def create mode 100644 templates/reset/vrrp/master/interface/node.tag/node.def create mode 100644 templates/reset/vrrp/master/node.def create mode 100644 templates/reset/vrrp/node.def (limited to 'templates/reset') diff --git a/templates/reset/vrrp/master/interface/node.def b/templates/reset/vrrp/master/interface/node.def new file mode 100644 index 0000000..3c5c639 --- /dev/null +++ b/templates/reset/vrrp/master/interface/node.def @@ -0,0 +1,2 @@ +help: Reset VRRP master for a specific interface +allowed: /opt/vyatta/bin/sudo-users/vyatta-clear-vrrp.pl --action=find_vrrp_intf diff --git a/templates/reset/vrrp/master/interface/node.tag/group/node.def b/templates/reset/vrrp/master/interface/node.tag/group/node.def new file mode 100644 index 0000000..215ee00 --- /dev/null +++ b/templates/reset/vrrp/master/interface/node.tag/group/node.def @@ -0,0 +1 @@ +help: clear VRRP master for specified interface and group diff --git a/templates/reset/vrrp/master/interface/node.tag/group/node.tag/node.def b/templates/reset/vrrp/master/interface/node.tag/group/node.tag/node.def new file mode 100644 index 0000000..6e35e22 --- /dev/null +++ b/templates/reset/vrrp/master/interface/node.tag/group/node.tag/node.def @@ -0,0 +1,3 @@ +help: Reset VRRP master for specified interface and group +allowed: /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action=list-vrrp-group --intf "${COMP_WORDS[COMP_CWORD-2]}" +run: sudo /opt/vyatta/bin/sudo-users/vyatta-clear-vrrp.pl --vrrp-action clear_master --intf "$5" --group "$7" diff --git a/templates/reset/vrrp/master/interface/node.tag/node.def b/templates/reset/vrrp/master/interface/node.tag/node.def new file mode 100644 index 0000000..b4482b9 --- /dev/null +++ b/templates/reset/vrrp/master/interface/node.tag/node.def @@ -0,0 +1,2 @@ +help: Reset VRRP master for a specified interface +allowed: /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action=list-vrrp-intf diff --git a/templates/reset/vrrp/master/node.def b/templates/reset/vrrp/master/node.def new file mode 100644 index 0000000..9b2d91d --- /dev/null +++ b/templates/reset/vrrp/master/node.def @@ -0,0 +1 @@ +help: Reset VRRP master diff --git a/templates/reset/vrrp/node.def b/templates/reset/vrrp/node.def new file mode 100644 index 0000000..0208f5f --- /dev/null +++ b/templates/reset/vrrp/node.def @@ -0,0 +1 @@ +help: Reset VRRP -- cgit v1.2.3