def unmap_lun(self, path, igroup_name):
    'Unmaps a LUN from given initiator.'
    lun_unmap = netapp_api.NaElement.create_node_with_children('lun-unmap', **{'path': path, 'initiator-group': igroup_name})
    try:
        self.connection.invoke_successfully(lun_unmap, True)
    except netapp_api.NaApiError as e:
        exc_info = sys.exc_info()
        LOG.warning('Error unmapping LUN. Code :%(code)s, Message: %(message)s', {'code': e.code, 'message': e.message})
        if ((e.code == '13115') or (e.code == '9016')):
            pass
        else:
            six.reraise(*exc_info)
Unmaps a LUN from given initiator.
def unmap_lun(self, path, igroup_name):
    
    lun_unmap = netapp_api.NaElement.create_node_with_children('lun-unmap', **{'path': path, 'initiator-group': igroup_name})
    try:
        self.connection.invoke_successfully(lun_unmap, True)
    except netapp_api.NaApiError as e:
        exc_info = sys.exc_info()
        LOG.warning('Error unmapping LUN. Code :%(code)s, Message: %(message)s', {'code': e.code, 'message': e.message})
        if ((e.code == '13115') or (e.code == '9016')):
            pass
        else:
            six.reraise(*exc_info)