Policy reference checks

The policy reference checks functionality can be enabled with config>router>policy-reference-checks to indicate policies and policy objects in policy statements that are referenced but do not exist. An INFO or WARNING message is displayed in the CLI.

Note: The policy reference checks feature is available only in the classic CLI and not via SNMP or model-driven interfaces. Model-driven interfaces and mixed management interface configuration mode use strict policy reference checks starting in Release 16.0.R3, where the checks cannot be disabled.

If a policy is referenced which has not yet been configured, and no policy-reference-checks is set, the configuration line succeeds with the CLI message:

WARNING: CLI Policy "bar" does not exist

If a policy is referenced which has not yet been configured, and policy-reference-checks is set, the configuration line errors and fails with the CLI message:

MINOR: CLI Policy "foo" does not exist

Policy reference checks are required in router configuration contexts that reference a policy name, including the following:

Policy reference checks are required in policy configuration contexts that reference a policy element, including the following: