summaryrefslogtreecommitdiff
path: root/templates/show
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-11-04 11:18:59 -0800
committerStig Thormodsrud <stig@uffda.(none)>2007-11-04 11:18:59 -0800
commit0c30d1f0919c646ec3f340ae2f11a10e9443c8a8 (patch)
treee031463ee76a826a364544dc47ff9904f99b8bc5 /templates/show
parent13131290ccc5e351b7ee5e607635d44d2304046d (diff)
downloadvyatta-op-0c30d1f0919c646ec3f340ae2f11a10e9443c8a8.tar.gz
vyatta-op-0c30d1f0919c646ec3f340ae2f11a10e9443c8a8.zip
Add "show vrrp".
Diffstat (limited to 'templates/show')
-rw-r--r--templates/show/vrrp/interface/node.def2
-rw-r--r--templates/show/vrrp/interface/node.tag/node.def5
-rw-r--r--templates/show/vrrp/node.def2
3 files changed, 9 insertions, 0 deletions
diff --git a/templates/show/vrrp/interface/node.def b/templates/show/vrrp/interface/node.def
new file mode 100644
index 0000000..eec2ae7
--- /dev/null
+++ b/templates/show/vrrp/interface/node.def
@@ -0,0 +1,2 @@
+help: "Show VRRP information for given interface"
+
diff --git a/templates/show/vrrp/interface/node.tag/node.def b/templates/show/vrrp/interface/node.tag/node.def
new file mode 100644
index 0000000..8556884
--- /dev/null
+++ b/templates/show/vrrp/interface/node.tag/node.def
@@ -0,0 +1,5 @@
+help: Show VRRP information for interface
+allowed: local -a array ;
+ array=( /sys/class/net/eth* ) ;
+ echo -n ${array[@]##*/}
+run: /opt/vyatta/sbin/vyatta-show-vrrp.pl $4
diff --git a/templates/show/vrrp/node.def b/templates/show/vrrp/node.def
new file mode 100644
index 0000000..8f7a621
--- /dev/null
+++ b/templates/show/vrrp/node.def
@@ -0,0 +1,2 @@
+help: Show VRRP information
+run: /opt/vyatta/sbin/vyatta-show-vrrp.pl