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.
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:
configure router bgp export
configure router bgp group export
configure router bgp group import
configure router bgp group neighbor export
configure router bgp group neighbor import
configure router bgp import
configure service vprn bgp export
configure service vprn bgp group export
configure service vprn bgp group import
configure service vprn bgp group neighbor export
configure service vprn bgp group neighbor import
configure service vprn bgp import
configure service vprn vrf-export
configure service vprn vrf-import
Policy reference checks are required in policy configuration contexts that reference a policy element, including the following:
entry from flow-spec-dest prefix-list-name
entry from flow-spec-source prefix-list-name
entry from group-address prefix-list-name
entry from host-ip prefix-list-name
entry from neighbor {ip-address | prefix-list-name}
entry from next-hop prefix-list-name
entry from prefix-list name [name]
entry from source-address prefix-list prefix-list-name
entry to neighbor {ip-address | prefix-list-name}
entry to prefix-list name [name]
as-path
as-path-group
community
damping
policy statements used in sub-policies