#NEWLINE# def read_conf( self , extra_args = None ) : #NEWLINE# #INDENT# retval = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for _afile in self . source_file ( ) : #NEWLINE# #INDENT# device_name = os . path . basename ( _afile ) . replace ( PARSER_STATICROUTE_FILE_PREFIX , '' ) #NEWLINE# self . parser . set_source_file ( [ _afile ] ) #NEWLINE# conf_arr = self . parser . read_conf ( ) #NEWLINE# try : #NEWLINE# #INDENT# if ( self . config_style == 'new' ) : #NEWLINE# #INDENT# arr = self . convert_old_style ( conf_arr [ _afile ] [ 'value' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# arr = conf_arr [ _afile ] [ 'value' ] #NEWLINE# #UNINDENT# self . dop . set ( self . _module , [ device_name ] , arr ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . dop . set ( self . _module , [ '@BASE_PARSER' ] , device_name . base_parser_name ) #NEWLINE# return self . dop . getconf ( self . _module )