From 21f9892d0840974b6d54e5746feb3c572dd907bf Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Fri, 1 Mar 2024 17:51:31 +0200 Subject: qos: T6081: QoS policy shaper target and interval wrong calcuations (cherry picked from commit c7f5b510cfd117e57f2d22e259c843600ef4cc76) --- python/vyos/qos/base.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'python/vyos/qos/base.py') 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' -- cgit v1.2.3