diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-01-30 15:48:08 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-01-30 15:48:08 -0800 |
commit | bbb0bf1533d3fe9de479d06954d7ffc1a07c27a0 (patch) | |
tree | 986acb45f1fc5dfdd160fe3116cc159b7a086acc /scripts | |
download | vyatta-op-qos-bbb0bf1533d3fe9de479d06954d7ffc1a07c27a0.tar.gz vyatta-op-qos-bbb0bf1533d3fe9de479d06954d7ffc1a07c27a0.zip |
Initial versiondebian/0.1
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-show-queue | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/vyatta-show-queue b/scripts/vyatta-show-queue new file mode 100755 index 0000000..e45ae18 --- /dev/null +++ b/scripts/vyatta-show-queue @@ -0,0 +1,30 @@ +#! /bin/bash + +declare progname=${0##*/} + +_usage () +{ + cat <<-EOF + Usage: $progname INTERFACE + $progname INTERFACE filter + $progname INTERFACE class + EOF +} + +if [[ $# -lt 1 ]]; then + _usage + exit 1 +fi + +if [[ $# -eq 1 ]]; then + tc -s -d qdisc show dev $1 +else + case $2 in + filter ) + tc filter show dev $1 ;; + class ) + tc -s -d class show dev $1 ;; + *) + _usage; exit 1;; + esac +fi |