topotests: nhrp_topo, test absence of noarp flag

Test the absence the NOARP flag on rX-gre0 interfaces. It is present by
default.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
Louis Scalbert 2024-01-11 11:17:54 +01:00
parent bdbea51c98
commit 3cd1c34cb7

View file

@ -182,6 +182,27 @@ def test_protocols_convergence():
assertmsg = '"{}" JSON output mismatches'.format(router.name) assertmsg = '"{}" JSON output mismatches'.format(router.name)
assert result is None, assertmsg assert result is None, assertmsg
# check that the NOARP flag is removed from rX-gre0 interfaces
for rname, router in router_list.items():
if rname == "r3":
continue
expected = {
"{}-gre0".format(rname): {
"flags": "<UP,RUNNING>",
}
}
test_func = partial(
topotest.router_json_cmp,
router,
"show interface {}-gre0 json".format(rname),
expected,
)
_, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
assertmsg = '"{}-gre0 interface flags incorrect'.format(router.name)
assert result is None, assertmsg
for rname, router in router_list.items(): for rname, router in router_list.items():
if rname == "r3": if rname == "r3":
continue continue