mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 15:07:51 +00:00
tests: Fix evpn tests to ensure mac addresses will show up
Locally, the bgp_evpn_vxlan_svd_topo1 and bgp_evpn_vxlan_topo1 tests are failing for me. Upon inspection the test is looking for the mac addresses of the interfaces participating in the evpn bridging on the hosts. For some reason on my machine these mac addresses are not in the l2 tables at all on PE1 or PE2. Adding quick pings solves the problems. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
59cb833f6a
commit
18a8f40793
@ -231,6 +231,15 @@ def test_pe1_converge_evpn():
|
|||||||
_, result = topotest.run_and_expect(test_func, None, count=45, wait=1)
|
_, result = topotest.run_and_expect(test_func, None, count=45, wait=1)
|
||||||
assertmsg = '"{}" JSON output mismatches'.format(pe1.name)
|
assertmsg = '"{}" JSON output mismatches'.format(pe1.name)
|
||||||
|
|
||||||
|
# Let's ensure that the hosts have actually tried talking to
|
||||||
|
# each other. Otherwise under certain startup conditions
|
||||||
|
# they may not actually do any l2 arp'ing and as such
|
||||||
|
# the bridges won't know about the hosts on their networks
|
||||||
|
host1 = tgen.gears["host1"]
|
||||||
|
host1.run("ping -c 1 10.10.1.56")
|
||||||
|
host2 = tgen.gears["host2"]
|
||||||
|
host2.run("ping -c 1 10.10.1.55")
|
||||||
|
|
||||||
test_func = partial(
|
test_func = partial(
|
||||||
check_vni_macs_present,
|
check_vni_macs_present,
|
||||||
tgen,
|
tgen,
|
||||||
|
@ -164,6 +164,15 @@ def test_pe1_converge_evpn():
|
|||||||
_, result = topotest.run_and_expect(test_func, None, count=45, wait=1)
|
_, result = topotest.run_and_expect(test_func, None, count=45, wait=1)
|
||||||
assertmsg = '"{}" JSON output mismatches'.format(pe1.name)
|
assertmsg = '"{}" JSON output mismatches'.format(pe1.name)
|
||||||
|
|
||||||
|
# Let's ensure that the hosts have actually tried talking to
|
||||||
|
# each other. Otherwise under certain startup conditions
|
||||||
|
# they may not actually do any l2 arp'ing and as such
|
||||||
|
# the bridges won't know about the hosts on their networks
|
||||||
|
host1 = tgen.gears["host1"]
|
||||||
|
host1.run("ping -c 1 10.10.1.56")
|
||||||
|
host2 = tgen.gears["host2"]
|
||||||
|
host2.run("ping -c 1 10.10.1.55")
|
||||||
|
|
||||||
test_func = partial(
|
test_func = partial(
|
||||||
check_vni_macs_present,
|
check_vni_macs_present,
|
||||||
tgen,
|
tgen,
|
||||||
@ -171,6 +180,7 @@ def test_pe1_converge_evpn():
|
|||||||
101,
|
101,
|
||||||
(("host1", "host1-eth0"), ("host2", "host2-eth0")),
|
(("host1", "host1-eth0"), ("host2", "host2-eth0")),
|
||||||
)
|
)
|
||||||
|
|
||||||
_, result = topotest.run_and_expect(test_func, None, count=30, wait=1)
|
_, result = topotest.run_and_expect(test_func, None, count=30, wait=1)
|
||||||
if result:
|
if result:
|
||||||
logger.warning("%s", result)
|
logger.warning("%s", result)
|
||||||
|
Loading…
Reference in New Issue
Block a user