#NEWLINE# def insert_announced( self , change , force = False ) : #NEWLINE# #INDENT# if ( ( not force ) and self . _enhanced_refresh_start ) : #NEWLINE# #INDENT# self . _enhanced_refresh_delay . append ( change ) #NEWLINE# return #NEWLINE# #UNINDENT# change_nlri_index = change . index ( ) #NEWLINE# change_attr_index = change . attributes . index ( ) #NEWLINE# dict_sorted = self . _modify_sorted #NEWLINE# dict_nlri = self . _modify_nlri #NEWLINE# dict_attr = self . _cache_attribute #NEWLINE# if ( change_nlri_index in dict_nlri ) : #NEWLINE# #INDENT# old_attr_index = dict_nlri [ change_nlri_index ] . attributes . index ( ) #NEWLINE# old_change = dict_nlri . pop ( change_nlri_index ) #NEWLINE# del dict_sorted [ old_attr_index ] [ change_nlri_index ] #NEWLINE# if ( not dict_sorted [ old_attr_index ] ) : #NEWLINE# #INDENT# del dict_sorted [ old_attr_index ] #NEWLINE# #UNINDENT# if ( ( old_change . nlri . action == OUT . ANNOUNCE ) and ( change . nlri . action == OUT . WITHDRAW ) ) : #NEWLINE# #INDENT# if ( self . cache and ( change_nlri_index not in self . _seen . get ( change . nlri . family ( ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# dict_sorted . setdefault ( change_attr_index , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) [ change_nlri_index ] = change #NEWLINE# dict_nlri [ change_nlri_index ] = change #NEWLINE# if ( change_attr_index not in dict_attr ) : #NEWLINE# #INDENT# dict_attr [ change_attr_index ] = change