Changing the priority setting on a policy when one or more classifiers are currently using the policy (example)

Suppose that codepoint 1 is in use by one or more classifiers. If you try to change its priority, you see a result similar to the following:

Error message for changing the priority on a DSCP policy

switch(config)# qos dscp-map 1 priority 2
Cannot modify DSCP Policy 1 - in use by other qos rules.
In this case, you would use steps similar to the following to change the priority.
  1. Identify which classifiers use the codepoint you want to change. The following example shows a search to identify classifiers using a codepoint you want to change.
    switch(config)# show qos device-priority
     
     Device priorities
     
     Device Address Apply Rule | DSCP Priority
     -------------- ---------- - ---- -----------
     10.26.50.104   DSCP       | 1    6
    
    switch(config)# show qos port-priority
    
     Port priorities
    
     Port Apply rule  | DSCP  Priority     Radius Override
     ---- ----------    ----- ----------   ---------------
     1    No-override |       No-override  No-override
     2    No-override |       No-override  No-override
     3    DSCP        | 1     6            No-override
     4    No-override |       No-override  No-override
     .
     .
     .
    switch(config)# show qos tcp-udp-port-priority
    
     TCP/UDP port based priorities
    
              | IP Packet  Application
     Protocol | Type       Port       Apply rule | DSCP   Priority
     -------- + ---------- ---------- ---------- + ------ --------
     UDP      | IPv4       1260       DSCP       | 1      6
                    
  2. Change the classifier configurations by assigning them to a different DSCP policy, or to an 802.1p priority, or to No-override. For example:
    1. Delete the policy assignment for the device-priority classifier. (That is, assign it to No-override.)

      switch(config)# no qos device-priority 10.26.50.104

    2. Create a new DSCP policy to use for re-assigning the remaining classifiers.

      switch(config)# qos dscp-map 5 priority 6

    3. Assign the port-priority classifier to the new DSCP policy.

      switch(config)# int 3 qos dscp 5

    4. Assign the udp-port 1260 classifier to an 802.1p priority.

      switch(config)# qos udp-port 1260 priority 2

  3. Reconfigure the desired priority for the 000001 (dscp 1) codepoint.
    switch(config)# qos dscp-map 000001 priority 4
  4. You could now re-assign the classifiers to the original policy codepoint or leave them as currently configured.