Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable BGP when running test_neighbor_mac_noptf (#3369)
Disabled BGP during the execution of test_neighbor_mac_noptf to ensure the switch (swss) is not overloaded by BGP related route updates during the test as a result of the neighbor updates which may cause the test not to complete within the prescribed time of 2 seconds and thus fail. Also, in the test, if it does not successfully register the update within two seconds, it automatically tears down the test possibly removing any evidence that the switch would have eventually processed the command once it completed all the route updates. - How did you do it? Edited the configuration test fixture method in the test to disable BGP on setup and enables it again on teardown. This is done similarly to other tests in sonic-mgmt. Note: The 120 second delay seems to be necessary to allow all routes and neighbors to flush after BGP comes down.
- Loading branch information