.. _example_protocols_bgp_peer-group_weight: ###### Weight ###### Scenario to verify BGP **peer-group weight** configuration. Weight is a locally significant BGP attribute used to influence path selection. It is the first criterion evaluated in the bestpath algorithm — the route with the highest weight is preferred. When weight is configured on a peer-group, all routes received from neighbors that belong to that peer-group inherit the configured weight value. In this test, **DUT0** defines a peer-group ``MYGROUP`` with weight 5 and assigns the neighbor to it. **DUT1** redistributes a directly connected network. The test verifies that the route received from DUT1 has the weight value inherited from the peer-group configuration. *********************************************************** Test iBGP - Peer-group weight is applied to received routes *********************************************************** Description =========== Test that weight configured on a peer-group is inherited by its members. **DUT0** creates peer-group ``MYGROUP`` with weight 5 and assigns the neighbor to it. **DUT1** redistributes connected networks. The test verifies that the route received by DUT0 has weight 5 applied through the peer-group inheritance. Scenario ======== .. include:: weight/testibgp-peer-groupweightisappliedtoreceivedroutes .. raw:: html