def METHOD_NAME(router):
    routes = tgen.gears[router].vtysh_cmd("show ipv6 ospf6 route json", isjson=True)
    route_prefixes_infos = sorted(routes.get("routes", {}).items())
    return [len(ri.get("nextHops", [])) for rp, ri in route_prefixes_infos]