Error: "There must be a port-parameters level policy"
Cause
You tried to configure a QoS policy of a virtual interface (VIF) where you did not also configure a QoS policy on the trunk interface that the VIF belongs to.
You will trigger this error if you use a command like this:
set interfaces dataplane <interface-name> switch-group port-parameters vlan-parameters qos-parameters vlan <vlan-id> qos-policy qos <policy-name>
without a corresponding command like this:
set interfaces dataplane <interface-name> switch-group port-parameters policy qos <policy-name>