summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-03-02 10:40:04 +0100
committerGitHub <noreply@github.com>2024-03-02 10:40:04 +0100
commitde70b2e5ee06fa430978797a3296a88181947c56 (patch)
tree019071e08a1d527f9349b90ba678b63d6f74e34a
parent191205a15b7c35a897ee88b0ac0d274991b60bed (diff)
parent21f9892d0840974b6d54e5746feb3c572dd907bf (diff)
downloadvyos-1x-de70b2e5ee06fa430978797a3296a88181947c56.tar.gz
vyos-1x-de70b2e5ee06fa430978797a3296a88181947c56.zip
Merge pull request #3071 from vyos/mergify/bp/sagitta/pr-3069
qos: T6081: QoS policy shaper target and interval wrong calcuations (backport #3069)
-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'