summaryrefslogtreecommitdiff
path: root/templates/clear
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-05-26 13:50:33 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-05-26 13:50:33 -0700
commit5cc881e0cc7eccd422b1dce2980bb69e8fe0f709 (patch)
tree2638d272b028566db3242317fef2d2abd4283224 /templates/clear
parent7ed38a2c223dd3dbc96d72123eb267c7f4bf63db (diff)
downloadvyatta-op-5cc881e0cc7eccd422b1dce2980bb69e8fe0f709.tar.gz
vyatta-op-5cc881e0cc7eccd422b1dce2980bb69e8fe0f709.zip
Fix 2705: Add "clear vrrp process" command.
Diffstat (limited to 'templates/clear')
-rw-r--r--templates/clear/vrrp/node.def1
-rw-r--r--templates/clear/vrrp/process/node.def6
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/clear/vrrp/node.def b/templates/clear/vrrp/node.def
new file mode 100644
index 0000000..fe0face
--- /dev/null
+++ b/templates/clear/vrrp/node.def
@@ -0,0 +1 @@
+help: Clear VRRP
diff --git a/templates/clear/vrrp/process/node.def b/templates/clear/vrrp/process/node.def
new file mode 100644
index 0000000..f97cb91
--- /dev/null
+++ b/templates/clear/vrrp/process/node.def
@@ -0,0 +1,6 @@
+help: Restart the VRRP process
+run: if [ -e /etc/keepalived/keepalived.conf ] && [ -n "`grep vyatta /etc/keepalived/keepalived.conf `" ] ; then
+ sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action clear
+ else
+ echo VRRP not configured
+ fi