diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 16:42:44 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 16:42:44 -0700 |
commit | 52654a35201552651e17452dbd548b2f96197383 (patch) | |
tree | 82e1ab9420c4090ea656b95509877e9de3de3a68 /templates/show/queueing | |
parent | 0e7d1caab76c6285bfe2649480eb4683b9925321 (diff) | |
download | vyatta-op-qos-52654a35201552651e17452dbd548b2f96197383.tar.gz vyatta-op-qos-52654a35201552651e17452dbd548b2f96197383.zip |
Add queuing operational mode commands for more interface types
Diffstat (limited to 'templates/show/queueing')
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 |