diff options
author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-01-11 11:17:54 +0100 |
---|---|---|
committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-01-24 10:05:49 +0100 |
commit | 3cd1c34cb79144413fe6c049e551481cfbf06ca2 (patch) | |
tree | 4f08d906c039e210962498e0869ceea56b72a1e1 /tests | |
parent | nhrpd: unset noarp flag using a zapi message (diff) | |
download | frr-3cd1c34cb79144413fe6c049e551481cfbf06ca2.tar.xz frr-3cd1c34cb79144413fe6c049e551481cfbf06ca2.zip |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/topotests/nhrp_topo/test_nhrp_topo.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/topotests/nhrp_topo/test_nhrp_topo.py b/tests/topotests/nhrp_topo/test_nhrp_topo.py index 78b82eda7..26115de2b 100644 --- a/tests/topotests/nhrp_topo/test_nhrp_topo.py +++ b/tests/topotests/nhrp_topo/test_nhrp_topo.py @@ -182,6 +182,27 @@ 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,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 |