'Configure redirection'

def do_redirect(self, input):

    (argc, argv) = util.parseinput(input, 2)
    self.io.newline()
    if (argc == 0):
        if self.redirection.is_active():
            self.io.print_success('Redirection    ON')
        else:
            self.io.print_warning('Redirection    OFF')
    elif (argc == 1):
        if (argv[0].lower() in ('off', 'no')):
            self.redirection.off()
            self.io.print_warning('Redirection    OFF')
        elif (argv[0].lower() in ('on', 'yes')):
            self.redirection.on()
            self.io.print_success('Redirection    ON')
        else:
            raise exception.CmdErr, 'Invalid    input'
