def METHOD_NAME(router, expected_num_nexthops, count):
    "Wait until number of nexthops for routes matches expectation"
    logger.info("waiting for OSPFv3 router '{}' nexthops {}".format(router, expected_num_nexthops))
    test_func = partial(num_nexthops, router)
    _, result = topotest.run_and_expect(test_func, expected_num_nexthops,
                                        count=count, wait=3)
    assert result == expected_num_nexthops, \
           "'{}' wrong number of route nexthops".format(router)