diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-08 11:20:48 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-08 11:20:48 -0700 |
commit | 6031bdeb50c8e919227cfea2ac573b8a4af7e0a4 (patch) | |
tree | 5836a582f02661eee96f60aa7fe4fd87e0410b5d | |
parent | 4f5a38a5b6e7d9beb5716418c2a84414f4df57d4 (diff) | |
download | vyatta-cfg-qos-6031bdeb50c8e919227cfea2ac573b8a4af7e0a4.tar.gz vyatta-cfg-qos-6031bdeb50c8e919227cfea2ac573b8a4af7e0a4.zip |
Fail on commit if ceiling is less than bandwidth
Change the existing warning into a failure. No one reads warnings,
and the shaping is unstable if ceiling < bandwidth.
-rw-r--r-- | scripts/VyattaQosTrafficShaper.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm index b3a05a6..de6bb57 100644 --- a/scripts/VyattaQosTrafficShaper.pm +++ b/scripts/VyattaQosTrafficShaper.pm @@ -113,8 +113,7 @@ my $ceil = _getPercentRate($self->{_ceiling}, $limit); if (defined $ceil && $ceil < $rate) { - printf STDERR - "Warning: $level\nceiling %dKbps < class bandwidth %dKbps\n", + die "$level\nceiling %dKbps < class bandwidth %dKbps\n", $ceil / 1000, $rate / 1000; } } |