'Creates host on array with given port information.'

def create_host_with_ports(self, label, host_type, port_ids, port_type='iscsi', group_id=None):

    if (port_type == 'fc'):
        port_ids = [six.text_type(wwpn).replace(':', '') for wwpn in port_ids]
    ports = []
    for port_id in port_ids:
        port_label = utils.convert_uuid_to_es_fmt(uuid.uuid4())
        port = {'type': port_type, 'port': port_id, 'label': port_label}
        ports.append(port)
    return self.create_host(label, host_type, ports, group_id)
