#NEWLINE# def _update_rt_ri_association( self , oc_client , operation , ri_id , rt_fq_name , import_export = None ) : #NEWLINE# #INDENT# rt_uuid = self . _locate_rt ( oc_client , rt_fq_name ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'operation' : operation , #NEWLINE# 'resource_type' : 'routing-instance' , #NEWLINE# 'resource_uuid' : ri_id , #NEWLINE# 'ref_type' : 'route-target' , #NEWLINE# 'ref_fq_name' : rt_fq_name , #NEWLINE# 'ref_uuid' : rt_uuid , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'import_export' : import_export , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# oc_client . ref_update ( ** kwargs ) #NEWLINE# if ( operation == 'DELETE' ) : #NEWLINE# #INDENT# self . _clean_route_targets ( oc_client , [ rt_fq_name ] )