def METHOD_NAME(idx, port, counters, digests, tag):
    config = {'flow_counters': counters,
              'flow_digests': digests,
              'protocol_counters': ['ethernet', 'ip', 'transport']}
    return {'id': '{}-{}'.format(tag, idx),
            'config': config,
            'source_id': port}