Error: "Policies are not permitted under both interface and switch-group CLI tree"
Cause
You tried to attach QoS polices to interfaces both in the router mode and the switch mode configuration trees.
Some of our hardware platforms can operate in two different modes:
- Router mode — where the system performs as a level 3 router
- Switch mode — where the system performs as a level 2 switch
You will trigger this error if you combine commands like these:
set interfaces dataplane <interface-name> switch-group port-parameters policy qos <policy-name>
set interfaces dataplane <interface-name> policy qos <policy-name>