summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-09 12:43:33 +0100
committerGitHub <noreply@github.com>2024-02-09 12:43:33 +0100
commitffca244d5c38655ce915cee373e3d6f6c9292954 (patch)
treecf40bb04bf9c4c43dc3e38803cc42c92c4149fd6 /python/vyos
parent98986278866f019d935ad56519a28907d60094fe (diff)
parent2e8fa45c7f0663549edd118622b3381e7c428b2e (diff)
downloadvyos-1x-ffca244d5c38655ce915cee373e3d6f6c9292954.tar.gz
vyos-1x-ffca244d5c38655ce915cee373e3d6f6c9292954.zip
Merge pull request #2978 from sever-sever/T6028
T6028: Fix QoS policy shaper wrong class_id_max and default_minor_id
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/qos/trafficshaper.py5
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