Skip to content

Commit

Permalink
T5048: QoS do not add prio if it is already in tc command
Browse files Browse the repository at this point in the history
Prevent duplicatte prio fot tc command
  • Loading branch information
sever-sever committed Jul 2, 2023
1 parent 687c963 commit e0498b5
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 e0498b5

Please sign in to comment.