def METHOD_NAME(self, config):
    """
    Set the new config in the config file through augeas.
    :param config: List of iface informations, one dict per iface
    :type config: list of dict
    """
    for index, iface in enumerate(config):
        aug = self.get_augeas(iface['name'])
        file = f'ifcfg-{iface}'
        aug_path = os.path.join(self.aug_path, file)
        if iface['family'] == 'inet':
            aug.remove(aug_path + '/IPV6INIT')
            aug.remove(aug_path + '/IPV6ADDR')
            aug.remove(aug_path + '/IPV6_DEFAULTGW')
            aug.setd(aug_path + '/IPADDR', iface['address'])
            aug.setd(aug_path + '/NETMASK', iface['mask'])
            aug.setd(aug_path + '/GATEWAY', iface['gateway'])
        else:
            aug.remove(aug_path + '/IPADDR')
            aug.remove(aug_path + '/NETMASK')
            aug.remove(aug_path + '/GATEWAY')
            aug.setd(aug_path + '/IPV6INIT', 'yes')
            aug.setd(aug_path + '/IPV6ADDR', iface['address'])
            aug.setd(aug_path + '/IPV6_DEFAULTGW', iface['gateway'])
        aug.setd(aug_path + '/BOOTPROTO', iface['method'])
        aug.setd(aug_path + '/HWADDR', iface['hwaddress'])
        aug.setd(aug_path + '/DHCP_HOSTNAME', iface['dhcpClient'])
        aug.save()