.. _example_protocols_bgp_peer-group_allowas-in: ########## Allowas-In ########## Scenario to verify BGP **peer-group allowas-in** inheritance. When ``allowas-in`` is configured on a peer-group, neighbors that are members of that group accept routes containing their own AS in the AS-path. ************************************************************ Test eBGP - Peer-group allowas-in accepts routes with own AS ************************************************************ Description =========== Test that ``allowas-in`` configured on a peer-group is inherited by its members. DUT1 prepends DUT0's own AS (100) to the route. With allowas-in inherited from the peer-group, DUT0 accepts the route despite containing its own AS in the path. Scenario ======== .. include:: allowas-in/testebgp-peer-groupallowas-inacceptsrouteswithownas .. raw:: html
**************************************************** Test eBGP - Peer-group allowas-in disabled (default) **************************************************** Description =========== Test that by default BGP rejects routes containing its own AS in the AS_PATH. DUT1 prepends DUT0's AS (100) to the AS_PATH. Without allowas-in on the peer-group, DUT0 should reject this route. Scenario ======== .. include:: allowas-in/testebgp-peer-groupallowas-indisabled(default) .. raw:: html