10-14-2010 08:42 AM - edited 03-04-2019 10:07 AM
i'm having a strange problem with IOS-XR and removing class-map references from policy-maps. It does not seem to let me remove a reference to a class-map and remove the class-map in the same transaction. Is this a bug? I sent the commands in the correct order but it looks like the commit is evaluating them out of order.
Thanks,
Greg
RP/0/4/CPU0:rotgsr-2#configure
Thu Oct 14 11:29:25.912 EDT
RP/0/4/CPU0:rotgsr-2(config)#policy-map mqc-phb-2
RP/0/4/CPU0:rotgsr-2(config-pmap)#no class my_cos
RP/0/4/CPU0:rotgsr-2(config-pmap)#exit
RP/0/4/CPU0:rotgsr-2(config)#no class-map match-any my_cos
RP/0/4/CPU0:rotgsr-2(config)#commit confirmed
% Failed to commit one or more configuration items during a pseudo-atomic operation. All changes made have been reverted. Please issue 'show configuration failed' from this session to view the errors
RP/0/4/CPU0:rotgsr-2(config)#show configuration failed
Thu Oct 14 11:30:13.546 EDT
!! SEMANTIC ERRORS: This configuration was rejected by
!! the system due to semantic errors. The individual
!! errors with each failed configuration command can be
!! found below.
!
no class-map my_cos
!!% Object is in use: Class-map "my_cos" of type "qos" is used by policy-map(s). Delete failed.
end