Changing the priority setting on a policy when other QoS features are currently using the policy (Example)

Codepoint 000001 is in use by one or more global QoS policies. If you try to modify the priority currently associated with the codepoint, an error message similar to the following is displayed:
switch(config)# qos dscp-map 1 priority 2
Cannot modify DSCP Policy 1 - in use by other qos rules.

In this case, follow these steps to change the priority:

Procedure
  1. Identify the global and classifier-based QoS policies that use the codepoint whose DSCP-priority mapping you want to change.
    Identifying the QoS policies that use a codepoint
  2. Change each QoS configuration by assigning a different DSCP policy or a different 802.1p priority, or by removing the currently configured DSCP policy and restoring the default No-override setting; for example:
    1. Delete the current DSCP policy used to mark matching packets for a global IP-device policy (no qos device-priority command) and reset the default priority mapping to No-override.

    2. Create a new DSCP policy to use when you reconfigure QoS policies to use the new codepoint-priority mapping.

    3. Configure global source-port QoS to mark packets with the new DSCP policy.

    4. Assign the global QoS policy that matches udp-port 1260 packets to a different 802.1p priority.
      switch(config)# no qos device-priority 10.26.50.104
      switch(config)# qos dscp-map 000100 priority 6
      switch(config)# int 3 qos dscp 000100
      switch(config)# qos udp-port 1260 priority 2
  3. Reconfigure the desired priority for the 000001 codepoint.
    switch(config)# qos dscp-map 000001 priority 4
  4. Reconfigure QoS policies with the original codepoint (000001) to mark packets with the new DSCP-priority mapping, or leave QoS policies as currently configured from Step 2.