Skip to content

Commit

Permalink
Merge pull request #2068 from sever-sever/T5048
Browse files Browse the repository at this point in the history
T5048: QoS do not add prio if it is already in tc command
  • Loading branch information
sever-sever authored Jul 2, 2023
2 parents 687c963 + e0498b5 commit 4599a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vyos/qos/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def update(self, config, direction, priority=None):
if 'match' in cls_config:
for index, (match, match_config) in enumerate(cls_config['match'].items(), start=1):
filter_cmd = filter_cmd_base
if self.qostype == 'shaper':
if self.qostype == 'shaper' and 'prio ' not in filter_cmd:
filter_cmd += f' prio {index}'
if 'mark' in match_config:
mark = match_config['mark']
Expand Down

0 comments on commit 4599a9e

Please sign in to comment.