#NEWLINE# def _parse_entries( self , name ) : #NEWLINE# #INDENT# routemap_re = re . compile ( ( '^route-map\\s%s\\s(\\w+)\\s(\\d+)$' % name ) , re . M ) #NEWLINE# entries = list ( ) #NEWLINE# for entry in routemap_re . findall ( self . config ) : #NEWLINE# #INDENT# resource = dict ( ) #NEWLINE# ( action , seqno ) = entry #NEWLINE# routemap = self . get_block ( ( 'route-map\\s%s\\s%s\\s%s' % ( name , action , seqno ) ) ) #NEWLINE# resource = dict ( name = name , action = action , seqno = seqno , attr = dict ( ) ) #NEWLINE# resource [ 'attr' ] . update ( self . _parse_match_statements ( routemap ) ) #NEWLINE# resource [ 'attr' ] . update ( self . _parse_set_statements ( routemap ) ) #NEWLINE# resource [ 'attr' ] . update ( self . _parse_continue_statement ( routemap ) ) #NEWLINE# resource [ 'attr' ] . update ( self . _parse_description ( routemap ) ) #NEWLINE# entries . append ( resource ) #NEWLINE# #UNINDENT# return self . _merge_entries ( entries )