diff options
Diffstat (limited to 'templates/show')
-rw-r--r-- | templates/show/vrrp/interface/node.def | 2 | ||||
-rw-r--r-- | templates/show/vrrp/interface/node.tag/node.def | 5 | ||||
-rw-r--r-- | templates/show/vrrp/node.def | 2 |
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 |