export (Protocols BGP)
Syntax
export [ policy-names ];
Hierarchy Level
[edit logical-systems logical-system-name protocols bgp], [edit logical-systems logical-system-name protocols bgp group group-name], [edit logical-systems logical-system-name protocols bgp group group-name neighbor address], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp group group-name], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp group group-name neighbor address], [edit protocols bgp], [edit protocols bgp group name optimal-route-reflection], [edit protocols bgp group group-name], [edit protocols bgp group group-name neighbor address], [edit routing-instances routing-instance-name protocols bgp], [edit routing-instances routing-instance-name protocols bgp group group-name], [edit routing-instances routing-instance-name protocols bgp group group-name neighbor address]
Description
Apply one or more policies to routes being exported from the routing table into BGP.
If you specify more than one policy, they are evaluated in the
order specified, from left to right, and the first matching filter
is applied to the route. If no routes match the filters, the routing
table exports into BGP only the routes that it learned from BGP. If
an action specified in one of the policies manipulates a route characteristic,
the policy framework software carries the new route characteristic
forward during the evaluation of the remaining policies. For example,
if the action specified in the first policy of a chain sets a route’s
metric to 500, this route matches the criterion of metric 500
defined in the next policy.
Options
policy-names
—Name of one or more policies.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.