]> git.puffer.fish Git - mirror/frr.git/commit
topotests: structural issues in bgp_local_as_dotplus_private_remove 13666/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 2 Jun 2023 10:05:18 +0000 (12:05 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 20 Jun 2023 07:08:33 +0000 (09:08 +0200)
commitd1e16777d5073071f36659a5231be8d9d9226aa0
treec4051faeaab334279f8030ab14bf7667f7b24478
parent4230f85bef81902c6edc6b650096262f9a166baa
topotests: structural issues in bgp_local_as_dotplus_private_remove

This test has several issues:
A) The convergence function is spamming the show neighbor command until success,
if the neighbor never comes up the test will never finish. This adds unnecessary
load to an already loaded test system.  Use run_and_expect to properly wait for
the neighbor relationship to come up.
B) The convergence function should not sleep for 1 second *After* the neighbor
is established
C) The _bgp_as_path() function fails if the prefix has not been received yet.
This looking for the prefix data should be within a run_and_expect() functionality.
Else a loaded test system will fail in this function because while we may be in
an established state, prefixes might not yet have been exchanged and there is no
point in failing the test without giving the system some time to actually converge.

Fix those points, similarly to what has been fixed in
bgp_local_as_private_remove test.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/topotests/bgp_local_as_dotplus_private_remove/test_bgp_local_as_dotplus_private_remove.py