policy-statement
Syntax
policy-statementpolicy-name{termterm-name{from {familyfamily-name;match-conditions; policysubroutine-policy-name; prefix-listname; route-filterdestination-prefix match-type<actions>; source-address-filterdestination-prefix match-type<actions>; }to {match-conditions; policysubroutine-policy-name;}thenactions;} }Hierarchy Level
[edit logical-routerslogical-router-namepolicy-options], [editpolicy-options]Description
Define a routing policy, including subroutine policies.
Options
actions—(Optional) One or more actions to take if the conditions match. The actions are described in Table 10 and Table 11.
familyfamily-name—(Optional) Specify an address family protocol. Specifyinetfor an IPv4 address protocol. Specifyinet6for a 128-bit IPv6 address protocol, and to enable interpretation of IPv6 router filter addresses. Whenfamilyis not specified, the router uses the default IPv4 setting.
from—(Optional) Match a route based on its source address.
match-conditions—(Optional infromstatement; required intostatement) One or more conditions to use to make a match. The qualifiers are described in Table 9.
policysubroutine-policy-name—Use another policy as a match condition within this policy. The name identifying the subroutine policy can contain letters, numbers, and hyphens (-) and can be up to 255 characters long. To include spaces in the name, enclose it in quotation marks (" ''). For information about how to configure subroutines, see Configuring Subroutines.
policy-name—Name that identifies the policy. The name can contain letters, numbers, and hyphens (-) and can be up to 255 characters long. To include spaces in the name, enclose it in quotation marks (double quotes).
prefix-listname—Name of a list of IPv4 or IPv6 prefixes. To create a named list of IP address prefixes, see Extended Match Conditions Configuration.
route-filterdestination-prefix match-type<actions>—(Optional) List of routes on which to perform an immediate match.destination-prefixis the IPv4 or IPv6 route prefix to match,match-typeis the type of match (see Table 19), andactionsis the action to take if thedestination-prefixmatches.
source-address-filterdestination-prefix match-type<actions>—(Optional) Multicast source addresses in multiprotocol BGP (MBGP) and Multicast Source Discovery Protocol (MSDP) environments on which to perform an immediate match.destination-prefixis the IPv4 or IPv6 route prefix to match,match-typeis the type of match (see Table 19), andactionsis the action to take if thedestination-prefixmatches.
termterm-name—Name that identifies the term.
to—(Optional) Match a route based on its destination address or the protocols into which the route is being advertised.
then—(Optional) Actions to take on matching routes. The actions are described in Table 10 and Table 11.Usage Guidelines
See Defining Routing Policies and Extended Match Conditions Configuration.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.