<s> from fake_switches . dell . command_processor . enabled import DellEnabledCommandProcessor <EOL> from fake_switches . command_processing . base_command_processor import BaseCommandProcessor <EOL> class DellDefaultCommandProcessor ( BaseCommandProcessor ) : <EOL> enabled_command_processor = DellEnabledCommandProcessor <EOL> def get_prompt ( self ) : <EOL> return "<STR_LIT:\n>" + "<STR_LIT>" % self . switch_configuration . name <EOL> def do_enable ( self ) : <EOL> self . write ( "<STR_LIT>" ) <EOL> self . replace_input = '<STR_LIT:*>' <EOL> self . continue_to ( self . continue_enabling ) <EOL> def continue_enabling ( self , line ) : <EOL> self . replace_input = False <EOL> if line == "<STR_LIT>" or line in self . switch_configuration . privileged_passwords : <EOL> self . write_line ( "<STR_LIT>" ) <EOL> self . move_to ( self . enabled_command_processor ) <EOL> else : <EOL> self . write ( "<STR_LIT>" ) <EOL> def do_exit ( self ) : <EOL> self . is_done = True <EOL> def do_quit ( self ) : <EOL> self . is_done = True </s>
