- keep (all | none);
- [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 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]
Statement introduced before JUNOS Release 7.4.
Specify whether routes learned from a BGP peer are retained in the routing table even if they contain an AS number that was exported from the local AS.
If you do not include this statement, most routes are retained in the routing table.
all—Retain all routes.
none—Retain none of the routes. When keep none is configured for the BGP session and the inbound policy changes, the JUNOS software forces readvertisement of the full set of routes advertised by the peer.
See Configuring How Often BGP Exchanges Routes with the Routing Table.
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.