Skip to content

Commit

Permalink
topotests: nhrp_topo, test absence of noarp flag
Browse files Browse the repository at this point in the history
Test the absence the NOARP flag on rX-gre0 interfaces. It is present by
default.

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed Jan 11, 2024
1 parent 1cf44a8 commit 9e5e8b5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/topotests/nhrp_topo/test_nhrp_topo.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,24 @@ def test_protocols_convergence():
assertmsg = '"{}" JSON output mismatches'.format(router.name)
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,LOWER_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():
if rname == "r3":
continue
Expand Down

0 comments on commit 9e5e8b5

Please sign in to comment.