policy route-policy—Configure or apply a localized control policy (on vEdge routers only). For BGP, you apply the policy to an address family running on a specific BGP neighbor. For OSPF, you can apply the policy either to specific types of routes being redistributed into OSPF or to all inbound traffic.
vManage Feature Template
For vEdge routers only:
Configuration ► Policies ► Localized Policy
Configuration ► Templates ► OSPF
Create a Localized Control Policy
policy route-policy policy-name default-action action sequence number match address list-name as-path list-name community list-name ext-community list-name local-preference number metric number next-hop list-name omp-tag number origin (egp | igp | incomplete) ospf-tag number peer address action reject accept set aggregator number as-path (exclude | prepend) as-number atomic-aggregate community value local-preference number metric number metric-type (type1 | type2) next-hop ip-address omp-tag number origin (egp | igp | incomplete) originator ip-address ospf-tag number weight number
Apply a Localized Control Policy To BGP
vpn vpn-id router bgp local-as-number neighbor address address-family ipv4-upcast route-policy policy-name (in | out)
- Control Policy Name
Name of the localized control policy to configure or apply to a BGP neighbor or to OSPF. policy-name can be up to 32 characters long.
- Direction To Apply Policy
- in, out
Apply the policy to routes coming in to the router or being sent out of the router. For BGP, the policy can be applied to incoming or outgoing routes. For OSPF, the policy is apply to routes coming from OSPF neighbors. Use the OSPF redistribute command to apply policy to outgoing routes.
Command introduced in Viptela Software Release 14.1.
In Release 15.4, add support for configuring route policy on all OSPF inbound routes (route-policy in).