summaryrefslogtreecommitdiff
path: root/templates/show/vrrp
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/vrrp')
-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
+