summaryrefslogtreecommitdiffstats
path: root/tests/topotests/nhrp_topo
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 04:24:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 04:24:31 +0000
commitacb594b1d825c6e12369cebb941968ec08c840ce (patch)
treed544788908e7353a4f117e2991f15f4236a0c963 /tests/topotests/nhrp_topo
parentAdding upstream version 9.1. (diff)
downloadfrr-acb594b1d825c6e12369cebb941968ec08c840ce.tar.xz
frr-acb594b1d825c6e12369cebb941968ec08c840ce.zip
Adding upstream version 10.0.upstream/10.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/topotests/nhrp_topo')
-rw-r--r--tests/topotests/nhrp_topo/test_nhrp_topo.py21
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 78b82ed..26115de 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