<s> import logging <EOL> from fake_switches . command_processing . shell_session import ShellSession <EOL> from fake_switches . brocade . command_processor . piping import PipingProcessor <EOL> from fake_switches . brocade . brocade_core import BrocadeSwitchCore <EOL> from fake_switches . dell . command_processor . default import DellDefaultCommandProcessor <EOL> from fake_switches . terminal import LoggingTerminalController <EOL> class DellSwitchCore ( BrocadeSwitchCore ) : <EOL> def launch ( self , protocol , terminal_controller ) : <EOL> self . last_connection_id += <NUM_LIT:1> <EOL> self . logger = logging . getLogger ( "<STR_LIT>" % ( self . switch_configuration . name , self . last_connection_id , protocol ) ) <EOL> command_processor = DellDefaultCommandProcessor ( <EOL> switch_configuration = self . switch_configuration , <EOL> terminal_controller = LoggingTerminalController ( self . logger , terminal_controller ) , <EOL> piping_processor = PipingProcessor ( self . logger ) , <EOL> logger = self . logger ) <EOL> return DellShellSession ( command_processor ) <EOL> class DellShellSession ( ShellSession ) : <EOL> def handle_unknown_command ( self , line ) : <EOL> self . command_processor . terminal_controller . write ( "<STR_LIT>" ) <EOL> self . command_processor . terminal_controller . write ( "<STR_LIT>" ) <EOL> self . command_processor . terminal_controller . write ( "<STR_LIT:\n>" ) </s>
