diff options
6 files changed, 18 insertions, 0 deletions
diff --git a/templates/show/queueing/bonding/node.def b/templates/show/queueing/bonding/node.def new file mode 100644 index 0000000..6a31a45 --- /dev/null +++ b/templates/show/queueing/bonding/node.def @@ -0,0 +1,2 @@ +help: Show bonding queueing information +run: ${vyatta_bindir}/vyatta-show-queueing.pl --type=bonding diff --git a/templates/show/queueing/bonding/node.tag/node.def b/templates/show/queueing/bonding/node.tag/node.def new file mode 100644 index 0000000..a5513ad --- /dev/null +++ b/templates/show/queueing/bonding/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show specified bonding interface information +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=bonding +run: ${vyatta_bindir}/vyatta-show-queueing.pl "$4" diff --git a/templates/show/queueing/bonding/node.tag/vif/node.def b/templates/show/queueing/bonding/node.tag/vif/node.def new file mode 100644 index 0000000..2b74427 --- /dev/null +++ b/templates/show/queueing/bonding/node.tag/vif/node.def @@ -0,0 +1,4 @@ +help: Show specified virtual network interface (vif) information +run: tput setaf ${COLOR_RED:-1} ; + echo error: need to supply vif # ; + tput op diff --git a/templates/show/queueing/bonding/node.tag/vif/node.tag/node.def b/templates/show/queueing/bonding/node.tag/vif/node.tag/node.def new file mode 100644 index 0000000..ee1bbb2 --- /dev/null +++ b/templates/show/queueing/bonding/node.tag/vif/node.tag/node.def @@ -0,0 +1,5 @@ +help: Show specified virtual network interface (vif) queueing +allowed: local -a array ; + array=( /sys/class/net/${COMP_WORDS[3]}.* ) ; + echo -n ${array[@]##*.} +run: ${vyatta_bindir}/vyatta-show-queueing.pl "$4.$6" diff --git a/templates/show/queueing/pseudo-ethernet/node.def b/templates/show/queueing/pseudo-ethernet/node.def new file mode 100644 index 0000000..59971e5 --- /dev/null +++ b/templates/show/queueing/pseudo-ethernet/node.def @@ -0,0 +1,2 @@ +help: Show tunnel queueing information +run: ${vyatta_bindir}/vyatta-show-queueing.pl --type=pseudo-ethernet diff --git a/templates/show/queueing/tunnel/node.def b/templates/show/queueing/tunnel/node.def new file mode 100644 index 0000000..5dbaf5f --- /dev/null +++ b/templates/show/queueing/tunnel/node.def @@ -0,0 +1,2 @@ +help: Show tunnel queueing information +run: ${vyatta_bindir}/vyatta-show-queueing.pl --type=tunnel |