The goal of the test to check that BBR feature works correctly. The feature is implemented on bgpcfgd. The bgpcfgd dynamicaly changes BGP configuration, which either enable or disabled BBR functionality. The BBR functionality is enablement to see DUT ASN in the routes aspath not more than once.
The test is targeting a running SONIC system with fully functioning configuration. The purpose of the test is to test BBR feature and configuration, which includes bgpcfgd implementation and BGP.
The test could run on t1 testbed in virtual switch environment.
This test doesn't require any configuration.
The test announces ipv4 and ipv6 routes from one of the T0s, and checks when DUT accepts them with different BBR state.
- Ensure that BBR is enabled on the DUT
- Announce ipv4 and ipv6 routes fron one of the T0s to DUT. Each route must have patched aspath which contains DUT ASN once.
- Check that DUT BGP accepted both routes to the routing table
- Restore the BBR state how it was been before the test
- Ensure that BBR is enabled on the DUT
- Announce ipv4 and ipv6 routes fron one of the T0s to DUT. Each route must have patched aspath which contains DUT ASN two times.
- Check that DUT BGP rejected both routes to the routing table
- Restore the BBR state how it was been before the test
- Ensure that BBR is disabled on the DUT
- Announce ipv4 and ipv6 routes fron one of the T0s to DUT. Each route must have patched aspath which contains DUT ASN once.
- Check that DUT BGP rejected both routes to the routing table
- Restore the BBR state how it was been before the test
- Set the BBR status in the config_db to the value specified by the
bbr_status
parameters using the redis-cli command. - Save the configuration using the
sudo config save -y
command. - Reload the configuration using the
config_reload
function. - Retrieve the BBR status and verified it matches the expected
bbr_status
value. - Restore the BBR status how it was been before the test.