bgp maxas-limit limit
no bgp maxas-limit [ limit ]
Command introduced before JUNOSe Release 7.1.0.
Causes BGP to check the length of AS paths received in update messages and to not forward routes whose AS paths are greater than the specified length. The no version halts checking of the AS path length.
Router Configuration