def parseIfcfg(ifconfig):
    """
    Parses the ifconfig in an array if info
    :param iostat
    :return: array of dict
    """
    data = []
    for nic, stat in ifconfig.items():
        data.append({nic: {'bytes_sent': stat.bytes_sent, 'bytes_recv':
            stat.bytes_recv, 'packets_sent': stat.packets_sent,
            'packets_recv': stat.packets_recv, 'errin': stat.errin,
            'errout': stat.errout, 'dropin': stat.dropin, 'dropout': stat.
            dropout}})
    return data
