summaryrefslogtreecommitdiff
path: root/templates/show
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-05-15 11:34:33 -0700
committerJohn Southworth <john.southworth@vyatta.com>2012-05-15 11:34:33 -0700
commit6325118d9aa1ae7890a29c6f211ce456d04d68a9 (patch)
treed6cbbcad7acb4cd01cf520eff96e1641bd6a175f /templates/show
parent0da3c8a7e5b7506a4b9a7d1bedbd48fd45e7d89d (diff)
downloadvyatta-op-6325118d9aa1ae7890a29c6f211ce456d04d68a9.tar.gz
vyatta-op-6325118d9aa1ae7890a29c6f211ce456d04d68a9.zip
Add Vyatta wrappers for new keepalived output
1. Move show and clear vrrp scripts from vyatta-cfg-system. These belong in vyatta-op. 2. Create templates for new vrrp commands 3. Make show commands go through a perl module so they can be referenced from the webgui.
Diffstat (limited to 'templates/show')
-rw-r--r--templates/show/vrrp/detail/node.def3
-rw-r--r--templates/show/vrrp/interface/node.tag/group/node.tag/node.def4
-rw-r--r--templates/show/vrrp/interface/node.tag/node.def4
-rw-r--r--templates/show/vrrp/node.def2
-rw-r--r--templates/show/vrrp/statistics/interface/node.def1
-rw-r--r--templates/show/vrrp/statistics/interface/node.tag/group/node.def1
-rw-r--r--templates/show/vrrp/statistics/interface/node.tag/group/node.tag/node.def3
-rw-r--r--templates/show/vrrp/statistics/interface/node.tag/node.def3
-rw-r--r--templates/show/vrrp/statistics/node.def2
-rw-r--r--templates/show/vrrp/sync-group/group/node.def1
-rw-r--r--templates/show/vrrp/sync-group/group/node.tag/node.def3
-rw-r--r--templates/show/vrrp/sync-group/node.def3
12 files changed, 25 insertions, 5 deletions
diff --git a/templates/show/vrrp/detail/node.def b/templates/show/vrrp/detail/node.def
new file mode 100644
index 0000000..269df73
--- /dev/null
+++ b/templates/show/vrrp/detail/node.def
@@ -0,0 +1,3 @@
+help: Show detailed VRRP information
+run: /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=detail
+
diff --git a/templates/show/vrrp/interface/node.tag/group/node.tag/node.def b/templates/show/vrrp/interface/node.tag/group/node.tag/node.def
index de7eb12..c0df0f2 100644
--- a/templates/show/vrrp/interface/node.tag/group/node.tag/node.def
+++ b/templates/show/vrrp/interface/node.tag/group/node.tag/node.def
@@ -1,3 +1,3 @@
help: Show VRRP information 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-show-vrrp.pl "$4" "$6"
+allowed: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=interface --intf="${COMP_WORDS[COMP_CWORD-2]}"
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=detail --intf=$4 --vrid=$6
diff --git a/templates/show/vrrp/interface/node.tag/node.def b/templates/show/vrrp/interface/node.tag/node.def
index 1defd31..f9e53ee 100644
--- a/templates/show/vrrp/interface/node.tag/node.def
+++ b/templates/show/vrrp/interface/node.tag/node.def
@@ -1,3 +1,3 @@
help: Show VRRP information for specified interface
-allowed: /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action=list-vrrp-intf
-run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl "$4"
+allowed: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=interface
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=detail --intf=$4
diff --git a/templates/show/vrrp/node.def b/templates/show/vrrp/node.def
index 51e9b9d..606e215 100644
--- a/templates/show/vrrp/node.def
+++ b/templates/show/vrrp/node.def
@@ -1,2 +1,2 @@
help: Show Virtual Router Redundancy Protocol (VRRP) information
-run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=summary
diff --git a/templates/show/vrrp/statistics/interface/node.def b/templates/show/vrrp/statistics/interface/node.def
new file mode 100644
index 0000000..7d7d648
--- /dev/null
+++ b/templates/show/vrrp/statistics/interface/node.def
@@ -0,0 +1 @@
+help: Show VRRP statistics for specified interface
diff --git a/templates/show/vrrp/statistics/interface/node.tag/group/node.def b/templates/show/vrrp/statistics/interface/node.tag/group/node.def
new file mode 100644
index 0000000..4673669
--- /dev/null
+++ b/templates/show/vrrp/statistics/interface/node.tag/group/node.def
@@ -0,0 +1 @@
+help: Show VRRP statistics for specified interface and group
diff --git a/templates/show/vrrp/statistics/interface/node.tag/group/node.tag/node.def b/templates/show/vrrp/statistics/interface/node.tag/group/node.tag/node.def
new file mode 100644
index 0000000..05606f8
--- /dev/null
+++ b/templates/show/vrrp/statistics/interface/node.tag/group/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show VRRP statistics for specified interface and group
+allowed: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=interface --intf="${COMP_WORDS[COMP_CWORD-2]}"
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=stats --intf=$5 --vrid=$7
diff --git a/templates/show/vrrp/statistics/interface/node.tag/node.def b/templates/show/vrrp/statistics/interface/node.tag/node.def
new file mode 100644
index 0000000..494032b
--- /dev/null
+++ b/templates/show/vrrp/statistics/interface/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show VRRP statistics for specified interface
+allowed: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=interface
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=stats --intf=$5
diff --git a/templates/show/vrrp/statistics/node.def b/templates/show/vrrp/statistics/node.def
new file mode 100644
index 0000000..d125c2a
--- /dev/null
+++ b/templates/show/vrrp/statistics/node.def
@@ -0,0 +1,2 @@
+help: Show Virtual Router Redundancy Protocol (VRRP) statistics
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=stats
diff --git a/templates/show/vrrp/sync-group/group/node.def b/templates/show/vrrp/sync-group/group/node.def
new file mode 100644
index 0000000..7d7d648
--- /dev/null
+++ b/templates/show/vrrp/sync-group/group/node.def
@@ -0,0 +1 @@
+help: Show VRRP statistics for specified interface
diff --git a/templates/show/vrrp/sync-group/group/node.tag/node.def b/templates/show/vrrp/sync-group/group/node.tag/node.def
new file mode 100644
index 0000000..8beb76e
--- /dev/null
+++ b/templates/show/vrrp/sync-group/group/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show VRRP statistics for specified interface
+allowed: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=syncs
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=sync --intf=$5
diff --git a/templates/show/vrrp/sync-group/node.def b/templates/show/vrrp/sync-group/node.def
new file mode 100644
index 0000000..5242743
--- /dev/null
+++ b/templates/show/vrrp/sync-group/node.def
@@ -0,0 +1,3 @@
+help: Show VRRP sync-group information
+run: /opt/vyatta/bin/sudo-users/vyatta-show-vrrp.pl --show=sync
+