'Initializes the connection and returns connection info.'

def initialize_connection(self, volume, connector):

    volname = self.common._get_resource_name(volume, coprhd_common.MAX_SIO_LEN, True)
    properties = {}
    properties['scaleIO_volname'] = volname
    properties['scaleIO_volume_id'] = volume.provider_id
    properties['hostIP'] = connector['ip']
    properties['serverIP'] = self.configuration.coprhd_scaleio_rest_gateway_host
    properties['serverPort'] = self.configuration.coprhd_scaleio_rest_gateway_port
    properties['serverUsername'] = self.configuration.coprhd_scaleio_rest_server_username
    properties['serverPassword'] = self.configuration.coprhd_scaleio_rest_server_password
    properties['iopsLimit'] = None
    properties['bandwidthLimit'] = None
    properties['serverToken'] = self.server_token
    initiator_ports = []
    initiator_port = self._get_client_id(properties['serverIP'], properties['serverPort'], properties['serverUsername'], properties['serverPassword'], properties['hostIP'])
    initiator_ports.append(initiator_port)
    properties['serverToken'] = self.server_token
    self.common.initialize_connection(volume, 'scaleio', initiator_ports, connector['host'])
    dictobj = {'driver_volume_type': 'scaleio', 'data': properties}
    return dictobj
