summaryrefslogtreecommitdiff
path: root/templates/reset/vrrp
diff options
context:
space:
mode:
Diffstat (limited to 'templates/reset/vrrp')
-rw-r--r--templates/reset/vrrp/master/interface/node.def2
-rw-r--r--templates/reset/vrrp/master/interface/node.tag/group/node.def1
-rw-r--r--templates/reset/vrrp/master/interface/node.tag/group/node.tag/node.def3
-rw-r--r--templates/reset/vrrp/master/interface/node.tag/node.def2
-rw-r--r--templates/reset/vrrp/master/node.def1
-rw-r--r--templates/reset/vrrp/node.def1
6 files changed, 10 insertions, 0 deletions
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