mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 09:46:54 +00:00
tests: add topotest to cover SVD flood entry
Add a topotest to cover making sure SVD flood entries are installed with SVD. Signed-off-by: Stephen Worley <sworley@nvidia.com>
This commit is contained in:
parent
0e44c00d48
commit
6246b57e7c
@ -204,6 +204,13 @@ def check_vni_macs_present(tgen, router, vni, maclist):
|
|||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def check_flood_entry_present(pe, vni, vtep):
|
||||||
|
output = pe.run("bridge fdb get 00:00:00:00:00:00 dev vxlan0 vni {} self".format(vni))
|
||||||
|
|
||||||
|
if str(vtep) not in output:
|
||||||
|
return output
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
def test_pe1_converge_evpn():
|
def test_pe1_converge_evpn():
|
||||||
"Wait for protocol convergence"
|
"Wait for protocol convergence"
|
||||||
@ -233,6 +240,11 @@ def test_pe1_converge_evpn():
|
|||||||
logger.warning("%s", result)
|
logger.warning("%s", result)
|
||||||
assert None, '"{}" missing expected MACs'.format(pe1.name)
|
assert None, '"{}" missing expected MACs'.format(pe1.name)
|
||||||
|
|
||||||
|
vtep = "10.30.30.30"
|
||||||
|
test_func = partial(check_flood_entry_present, pe1, 101, vtep)
|
||||||
|
_, result = topotest.run_and_expect(test_func, None, count=30, wait=1)
|
||||||
|
assertmsg = '"{}" Flood FDB Entry for VTEP {} not found'.format(pe1.name, vtep)
|
||||||
|
assert result is None, assertmsg
|
||||||
|
|
||||||
def test_pe2_converge_evpn():
|
def test_pe2_converge_evpn():
|
||||||
"Wait for protocol convergence"
|
"Wait for protocol convergence"
|
||||||
@ -263,6 +275,11 @@ def test_pe2_converge_evpn():
|
|||||||
logger.warning("%s", result)
|
logger.warning("%s", result)
|
||||||
assert None, '"{}" missing expected MACs'.format(pe2.name)
|
assert None, '"{}" missing expected MACs'.format(pe2.name)
|
||||||
|
|
||||||
|
vtep = "10.10.10.10"
|
||||||
|
test_func = partial(check_flood_entry_present, pe2, 101, vtep)
|
||||||
|
_, result = topotest.run_and_expect(test_func, None, count=30, wait=1)
|
||||||
|
assertmsg = '"{}" Flood FDB Entry for VTEP {} not found'.format(pe2.name, vtep)
|
||||||
|
assert result is None, assertmsg
|
||||||
|
|
||||||
def mac_learn_test(host, local):
|
def mac_learn_test(host, local):
|
||||||
"check the host MAC gets learned by the VNI"
|
"check the host MAC gets learned by the VNI"
|
||||||
|
Loading…
Reference in New Issue
Block a user