diff options
-rw-r--r-- | python/vyos/qos/trafficshaper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/vyos/qos/trafficshaper.py b/python/vyos/qos/trafficshaper.py index 7d580baa2..8b0333c21 100644 --- a/python/vyos/qos/trafficshaper.py +++ b/python/vyos/qos/trafficshaper.py @@ -29,8 +29,9 @@ class TrafficShaper(QoSBase): class_id_max = 0 if 'class' in config: tmp = list(config['class']) - tmp.sort() - class_id_max = tmp[-1] + # Convert strings to integers + tmp = [int(x) for x in tmp] + class_id_max = max(tmp) r2q = 10 # bandwidth is a mandatory CLI node |