#NEWLINE# def config_mode( self , config_command = '' ) : #NEWLINE# #INDENT# 'Enter into config_mode.' #NEWLINE# output = '' #NEWLINE# if ( not self . check_config_mode ( ) ) : #NEWLINE# #INDENT# self . remote_conn . sendall ( self . normalize_cmd ( config_command ) ) #NEWLINE# output = self . read_until_prompt ( ) #NEWLINE# if ( not self . check_config_mode ( ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Failed to enter configuration mode.' ) #NEWLINE# #UNINDENT# #UNINDENT# return output