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.