Active policy configuration versus user-specified configuration

The output of the show policy command displays the active policy configurations. Active policy configurations are the policies that have been configured and accepted by the system. With applied policies, the active configuration displays the interfaces on which the policies have successfully been programmed in hardware.

The output of the show policy command with the configuration parameter, displays the policies that have been configured by the user.

Discrepancies might exist between the active policy configurations and the user-specified configurations. In the user-specified policy configurations, unsupported command parameters might have been configured, or an application of a policy might have been unsuccessful because of a lack of hardware resources.

To determine if a discrepancy exists between the configuration and what is active, run any variant of the show policy command. If the active policies and configured policies are not the same, a warning message is displayed in the output of the show command.

! policy MY_POLICY user configuration does not match active configuration.
! run 'policy NAME reset' to reset policy to match active configuration.

The switch displays an in progress message while it processes the configured policy:

! policy MY_POLICY user configuration currently being processed
! run 'policy NAME reset' to reset policy to match active configuration.

If the warning message or in progress message is displayed, additional changes may be made until the error message is no longer displayed. Or you can use the policy <policy-name> reset command to change the user-specified configuration to match the active configuration.

Example

Resetting MY_POLICY:

switch(config)# policy MY_POLICY reset