summaryrefslogtreecommitdiff
path: root/scripts/vyatta-qos-util.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-qos-util.pl')
-rwxr-xr-xscripts/vyatta-qos-util.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/vyatta-qos-util.pl b/scripts/vyatta-qos-util.pl
index 545e766..1e842b8 100755
--- a/scripts/vyatta-qos-util.pl
+++ b/scripts/vyatta-qos-util.pl
@@ -28,6 +28,7 @@ GetOptions(
"protocol=s" => \$protocol,
"dscp=s" => \$dsfield,
"tos=s" => \$dsfield,
+ "time=s" => \$time,
);
if ( defined $rate ) {
@@ -50,8 +51,14 @@ if ( defined $dsfield ) {
exit 0;
}
+if ( defined $time ) {
+ my $t = VyattaQosUtil::getTime($time);
+ exit 0;
+}
+
print <<EOF;
usage: vyatta-qos-util.pl --rate rate
+ vyatta-qos-util.pl --time time
vyatta-qos-util.pl --burst size
vyatta-qos-util.pl --protocol protocol
vyatta-qos-util.pl --dscp tos|dsfield