'Connect all specified HBAs with the specified port.'

def set_hba_ids(self, port, gid, hba_ids):

    registered_wwns = []
    for wwn in hba_ids:
        try:
            self.run_raidcom('add', 'hba_wwn', '-port', '-'.join([port, gid]), '-hba_wwn', wwn)
            registered_wwns.append(wwn)
        except exception.VSPError:
            utils.output_log(MSG.ADD_HBA_WWN_FAILED, port=port, gid=gid, wwn=wwn)
    if (not registered_wwns):
        msg = utils.output_log(MSG.NO_HBA_WWN_ADDED_TO_HOST_GRP, port=port, gid=gid)
        raise exception.VSPError(msg)
