def parse_cnx(raw, parsed):
    """Parse the connection metadata for this adapter."""
    cnx = []
    for cnx_raw in raw['clients']:
        cnx_parsed = {}
        cnx_parsed['config'] = cnx_raw['client_config']
        cnx_parsed['adapter_name'] = parsed['name']
        cnx_parsed['adapter_name_raw'] = parsed['name_raw']
        cnx_parsed['node_name'] = parsed['node_name']
        cnx_parsed['node_id'] = parsed['node_id']
        cnx_parsed['status'] = cnx_raw['status']
        cnx_parsed['working'] = cnx_raw['status'] == 'success' and not cnx_raw[
            'error']
        cnx_parsed['id'] = cnx_raw['client_id']
        cnx_parsed['uuid'] = cnx_raw['uuid']
        cnx_parsed['date_fetched'] = cnx_raw['date_fetched']
        cnx_parsed['error'] = cnx_raw['error']
        cnx.append(cnx_parsed)
    return cnx
