def METHOD_NAME(args):
    if not args.ports:
        args.ports = get_all_ports(args.url)
    print(args.ports)
    configs = list()
    for idx, port in enumerate(args.ports):
        configs.append(get_analyzer_config(idx, port, args.counters, args.digests, args.tag))
    assert len(configs) > 0, 'No analyzer configs!'
    total = 0
    while total < len(configs):
        r = requests.post("/".join([args.url, 'packet/analyzers/x/bulk-create']),
                          json={'items': configs[total:total + ADD_PAGE_SIZE]})
        r.raise_for_status()
        total += ADD_PAGE_SIZE