'Creates a LUN, handling Data ONTAP differences as needed.'

def _create_lun(self, volume_name, lun_name, size, metadata, qos_policy_group_name=None):

    if (qos_policy_group_name is not None):
        msg = _('Data    ONTAP    operating    in    7-Mode    does    not    support    QoS    policy    groups.')
        raise exception.VolumeDriverException(msg)
    self.zapi_client.create_lun(volume_name, lun_name, size, metadata, qos_policy_group_name)
    self.vol_refresh_voluntary = True
