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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2020-06-26 07:10:08 -04:00
parent 44cef72912
commit 2cb8bfb247
2 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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"))