'Find an igroup for a LUN mapped to the given initiator(s).'

def _find_mapped_lun_igroup(self, path, initiator_list):

    initiator_set = set(initiator_list)
    result = self.zapi_client.get_lun_map(path)
    initiator_groups = result.get_child_by_name('initiator-groups')
    if initiator_groups:
        for initiator_group_info in initiator_groups.get_children():
            initiator_set_for_igroup = set()
            for initiator_info in initiator_group_info.get_child_by_name('initiators').get_children():
                initiator_set_for_igroup.add(initiator_info.get_child_content('initiator-name'))
            if (initiator_set == initiator_set_for_igroup):
                igroup = initiator_group_info.get_child_content('initiator-group-name')
                lun_id = initiator_group_info.get_child_content('lun-id')
                return (igroup, lun_id)
    return (None, None)
