summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-09 13:30:30 +0100
committerGitHub <noreply@github.com>2024-02-09 13:30:30 +0100
commit791c07e804a1a7e1c48e1a2f491c10148137bc20 (patch)
treecfb7d6fbf300d4d4a95f8f786437845cc0b3271a
parent7e621f09dabb542d11db8931d19f36246763f64c (diff)
parenta6781cd008998200d491fbf86f6976d81323a7bd (diff)
downloadvyos-1x-791c07e804a1a7e1c48e1a2f491c10148137bc20.tar.gz
vyos-1x-791c07e804a1a7e1c48e1a2f491c10148137bc20.zip
Merge pull request #2979 from vyos/mergify/bp/sagitta/pr-2978
T6028: Fix QoS policy shaper wrong class_id_max and default_minor_id (backport #2978)
-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