loops (Autonomous System)
Statement introduced in Junos OS Release 9.6.
Globally, for the local-AS BGP attribute, allow the local device’s AS number to be in the received AS paths, and specify the number of times detection of the local device’s AS number in the AS_PATH attribute causes the route to hidden. For example, if you configure loops 1, the route is hidden if the local device’s AS number is detected in the path one or more times. This prevents routing loops and is the default behavior. If you configure loops 2, the route is hidden if the local device’s AS number is detected in the path two or more times.
The behavior of this statement is slightly different from the loops (BGP Address Family) statement.
number—Number of times detection of the AS number in the AS_PATH attribute causes the route to be hidden.
Range: 1 through 10
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.