summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-03-01 17:51:31 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-01 21:28:30 +0000
commit21f9892d0840974b6d54e5746feb3c572dd907bf (patch)
tree019071e08a1d527f9349b90ba678b63d6f74e34a
parent191205a15b7c35a897ee88b0ac0d274991b60bed (diff)
downloadvyos-1x-21f9892d0840974b6d54e5746feb3c572dd907bf.tar.gz
vyos-1x-21f9892d0840974b6d54e5746feb3c572dd907bf.zip
qos: T6081: QoS policy shaper target and interval wrong calcuations
(cherry picked from commit c7f5b510cfd117e57f2d22e259c843600ef4cc76)
-rw-r--r--python/vyos/qos/base.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/vyos/qos/base.py b/python/vyos/qos/base.py
index a22039e52..b25e9b481 100644
--- a/python/vyos/qos/base.py
+++ b/python/vyos/qos/base.py
@@ -129,16 +129,13 @@ class QoSBase:
if tmp: default_tc += f' flows {tmp}'
tmp = dict_search('interval', config)
- if tmp: default_tc += f' interval {tmp}'
-
- tmp = dict_search('interval', config)
- if tmp: default_tc += f' interval {tmp}'
+ if tmp: default_tc += f' interval {tmp}ms'
tmp = dict_search('queue_limit', config)
if tmp: default_tc += f' limit {tmp}'
tmp = dict_search('target', config)
- if tmp: default_tc += f' target {tmp}'
+ if tmp: default_tc += f' target {tmp}ms'
default_tc += f' noecn'