diff options
Diffstat (limited to 'templates/show/queueing/ethernet')
4 files changed, 20 insertions, 0 deletions
diff --git a/templates/show/queueing/ethernet/node.def b/templates/show/queueing/ethernet/node.def new file mode 100644 index 0000000..fee7370 --- /dev/null +++ b/templates/show/queueing/ethernet/node.def @@ -0,0 +1,2 @@ +help: Show ethernet queueing information +run: ${vyatta_bindir}/vyatta-show-queueing.pl --type=ethernet diff --git a/templates/show/queueing/ethernet/node.tag/node.def b/templates/show/queueing/ethernet/node.tag/node.def new file mode 100644 index 0000000..3643a94 --- /dev/null +++ b/templates/show/queueing/ethernet/node.tag/node.def @@ -0,0 +1,9 @@ +help: Show specified ethernet interface information +allowed: for dev in /sys/class/net/*; + do if [[ -L $dev/device ]] + then if [[ $(cat $dev/type) -eq 1 ]] + then echo -n ${dev##*/} " " + fi + fi + done +run: ${vyatta_bindir}/vyatta-show-queueing.pl "$4" diff --git a/templates/show/queueing/ethernet/vif/node.def b/templates/show/queueing/ethernet/vif/node.def new file mode 100644 index 0000000..2b74427 --- /dev/null +++ b/templates/show/queueing/ethernet/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/ethernet/vif/node.tag/node.def b/templates/show/queueing/ethernet/vif/node.tag/node.def new file mode 100644 index 0000000..ee1bbb2 --- /dev/null +++ b/templates/show/queueing/ethernet/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" |