'Defines ports in XIV.'

def _define_ports(self, host_bunch):

    fc_targets = []
    LOG.debug(host_bunch.get('name'))
    if (self._get_connection_type() == storage.XIV_CONNECTION_TYPE_ISCSI):
        self._define_iscsi(host_bunch)
    else:
        fc_targets = self._define_fc(host_bunch)
        fc_targets = list(set(fc_targets))
        fc_targets.sort(key=self._sort_last_digit)
    return fc_targets
