Skip to content
Snippets Groups Projects

qosmngr: update checks for valid queue rate

Merged Husaam Mehdi requested to merge for_qos_rate into devel
All threads resolved!
+ 2
2
@@ -1622,8 +1622,8 @@ static int set_QoSQueue_ShapingRate(char *refparam, struct dmctx *ctx, void *dat
if (bbfdm_validate_long(ctx, value, RANGE_ARGS{{"-1",NULL}}, 1))
return FAULT_9007;
if (DM_STRTOL(value) >= 0 && DM_STRTOL(value) < 1000) {
bbfdm_set_fault_message(ctx, "ShapingRate value less than 1000 not supported");
if (DM_STRTOL(value) > 100 && DM_STRTOL(value) < 1000) {
bbfdm_set_fault_message(ctx, "ShapingRate value in range 101-999 not supported");
return FAULT_9007;
}
Loading