diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-05-15 11:34:33 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-05-15 11:34:33 -0700 |
commit | 6325118d9aa1ae7890a29c6f211ce456d04d68a9 (patch) | |
tree | d6cbbcad7acb4cd01cf520eff96e1641bd6a175f /templates/show/vrrp/statistics/interface | |
parent | 0da3c8a7e5b7506a4b9a7d1bedbd48fd45e7d89d (diff) | |
download | vyatta-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/vrrp/statistics/interface')
4 files changed, 8 insertions, 0 deletions
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 |