Page MenuHomeVyOS Platform

qos: false "Conflicting policy name" when a class or match shares its name with the policy
In progress, LowPublicBUG

Description

A QoS policy cannot be committed when a child node inside it (for example a match under a class) has the same name as the policy itself. verify() in src/conf_mode/qos.py counts the policy name with dict_search_recursive() over the whole qos policy tree, so any key with that name is counted, not only policy names.

Steps to reproduce

set qos policy shaper VOIP default bandwidth 100mbit
set qos policy shaper VOIP class 10 bandwidth 10mbit
set qos policy shaper VOIP class 10 match VOIP ip dscp 46
commit

Result

Conflicting policy name "VOIP", already in use!

Expected

The commit succeeds. Only one policy is named VOIP. The check should compare policy names across policy types only (a shaper and a limiter with the same name must still be refused).

I have a fix with a smoketest and will open a PR.

Details

Version
2026.11.26-0016-rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to In progress.Mon, Nov 30, 12:09 PM
Viacheslav assigned this task to jamesperu.
Viacheslav changed the subtype of this task from "Task" to "Bug".