#NEWLINE# def _clean_bgpvpn_assoc( self , oc_client , bgpvpn_id ) : #NEWLINE# #INDENT# for kv_dict in oc_client . kv_store ( 'RETRIEVE' ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = json . loads ( kv_dict [ 'value' ] ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( isinstance ( value , dict ) and ( 'bgpvpn_net_assoc' in value ) and ( value [ 'bgpvpn_net_assoc' ] [ 'bgpvpn_id' ] == bgpvpn_id ) ) : #NEWLINE# #INDENT# assoc_id = value [ 'bgpvpn_net_assoc' ] [ 'id' ] #NEWLINE# oc_client . kv_store ( 'DELETE' , key = oc_client )