'Driver entry point to get the export info for a new volume.'

@debugger
def create_export(self, context, volume, connector):

    params = list()
    (pool, project, volume_name) = self._get_pool_project_volume_name(volume)
    params.append(('%s/%s/%s/%s' % (pool, TEGILE_LOCAL_CONTAINER_NAME, project, volume_name)))
    if getattr(self.configuration, 'use_chap_auth', False):
        chap_username = getattr(self.configuration, 'chap_username', '')
        chap_password = getattr(self.configuration, 'chap_password', '')
    else:
        chap_username = ''
        chap_password = ''
    initiator_info = {'initiatorName': connector['initiator'], 'chapUserName': chap_username, 'chapSecret': chap_password}
    params.append(initiator_info)
    mapping_info = self._api_executor.send_api_request(method='getISCSIMappingForVolume', params=params)
    target_portal = mapping_info['target_portal']
    target_iqn = mapping_info['target_iqn']
    target_lun = int(mapping_info['target_lun'])
    provider_location = ('%s    %s    %s' % (target_portal, target_iqn, target_lun))
    if getattr(self.configuration, 'use_chap_auth', False):
        provider_auth = ('CHAP    %s    %s' % (chap_username, chap_password))
    else:
        provider_auth = None
    return {'provider_location': provider_location, 'provider_auth': provider_auth}
