'Set basic target info'

def do_retarget(self, *ignore):

    self.do_back(self)
    self.io.newline()
    self.io.print_msg('Retargetting    Session')
    self.io.newline()
    try:
        target = self.getip_prompt('Target    IP    Address', self.fbglobalvars.get('targetip', ''))
        callback = self.getip_prompt('Callback    IP    Address', '')
        redirection = self.io.prompt_user('Use    Redirection', 'yes')
        if (redirection.lower() in ('no', 'n', 'off')):
            redirection = 'off'
        else:
            redirection = 'on'
        log_dir = None
        project = self.fbglobalvars.get('project', '')
        while (log_dir is None):
            (project, log_dir) = self._prompt_for_logging(target, project)
    except (exception.PromptErr, exception.CmdErr) as err:
        self.io.print_error(err.getErr())
        return
    self.io.newline()
    self.io.print_msg('Initializing    Global    State')
    self.do_setg(('TargetIp            %s' % target))
    self.do_setg(('CallbackIp    %s' % callback))
    self.do_redirect(redirection)
    self.do_setg(('LogDir    %s' % log_dir))
    self.do_setg(('Project    %s' % project))
    self.io.newline()
    if self.log:
        if ('Project' in self.fbglobalvars):
            self.log.set(project_name=self.fbglobalvars['Project'])
        self.log.open()
