From: Donald Sharp Date: Fri, 26 Jun 2020 11:10:08 +0000 (-0400) Subject: tests: Add some more data gathering X-Git-Tag: base_7.5~245^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2cb8bfb2477a5a7f01185b21efd88219a1a9bd5e;p=mirror%2Ffrr.git tests: Add some more data gathering From last addition we can tell that the nexthop-group C is installed but pbr does not think it is. This failure has been consistent the last 4-5 runs in master. Lets add a bit more data gathering to figure out what is going on. Signed-off-by: Donald Sharp --- diff --git a/tests/topotests/pbr-topo1/r1/pbrd.conf b/tests/topotests/pbr-topo1/r1/pbrd.conf index 4a126151b0..298cba2860 100644 --- a/tests/topotests/pbr-topo1/r1/pbrd.conf +++ b/tests/topotests/pbr-topo1/r1/pbrd.conf @@ -1,4 +1,7 @@ debug pbr +debug pbr events +debug pbr nht +debug pbr zebra # Valid table range pbr table range 10000 50000 # Try to set invalid bounds diff --git a/tests/topotests/pbr-topo1/test_pbr_topo1.py b/tests/topotests/pbr-topo1/test_pbr_topo1.py index a0ee6377c5..5fa25813bb 100755 --- a/tests/topotests/pbr-topo1/test_pbr_topo1.py +++ b/tests/topotests/pbr-topo1/test_pbr_topo1.py @@ -244,18 +244,28 @@ if __name__ == "__main__": # def gather_pbr_data_on_error(router): logger.info(router.vtysh_cmd("show ip route")) - logger.info(router.vtysh_cmd("show ip nexthop")) + logger.info(router.vtysh_cmd("show ip route vrf vrf-chiyoda")) + logger.info(router.vtysh_cmd("show ip nht")) logger.info(router.vtysh_cmd("show pbr interface")) logger.info(router.vtysh_cmd("show pbr map")) logger.info(router.vtysh_cmd("show pbr nexthop-groups")) - logger.info(router.vtysh_cmd("show nexthop-group rib singleton")) + logger.info(router.vtysh_cmd("show nexthop-group rib singleton ip")) + logger.info(router.vtysh_cmd("show nexthop-group rib singleton ipv6")) logger.info(router.vtysh_cmd("show nexthop-group rib")) logger.info(router.run("ip nexthop show")) logger.info(router.run("ip route show")) + logger.info(router.run("ip route show table 1000")) logger.info(router.run("ip route show table 10000")) + logger.info(router.run("ip -6 route show table 10000")) logger.info(router.run("ip route show table 10001")) + logger.info(router.run("ip -6 route show table 10001")) logger.info(router.run("ip route show table 10002")) + logger.info(router.run("ip -6 route show table 10002")) logger.info(router.run("ip route show table 10003")) + logger.info(router.run("ip -6 route show table 10003")) logger.info(router.run("ip route show table 10004")) + logger.info(router.run("ip -6 route show table 10004")) + logger.info(router.run("ip route show table 10005")) + logger.info(router.run("ip -6 route show table 10005")) logger.info(router.run("ip rule show"))