#NEWLINE# def remove_unbound_allowed_address_pair_port_binding( self , context , service_port_dict , port_address_pairs ) : #NEWLINE# #INDENT# 'Remove allowed address pair port binding and device_owner\n\n        This function clears the host and device_owner associated with\n        the port_addr_pair_ip.\n        ' #NEWLINE# port_addr_pair_ip = port_address_pairs [ 'ip_address' ] #NEWLINE# address_pair_port = self . _get_address_pair_active_port_with_fip ( context , service_port_dict , port_addr_pair_ip ) #NEWLINE# if address_pair_port : #NEWLINE# #INDENT# port_profile = address_pair_port . get ( portbindings . PROFILE ) #NEWLINE# orig_device_owner = '' #NEWLINE# if port_profile : #NEWLINE# #INDENT# orig_device_owner = port_profile . get ( 'original_owner' ) #NEWLINE# del port_profile [ 'original_owner' ] #NEWLINE# #UNINDENT# port_data = { #NEWLINE# #INDENT# portbindings . HOST_ID : '' , #NEWLINE# 'device_owner' : orig_device_owner , #NEWLINE# portbindings . PROFILE : port_profile , #NEWLINE# #UNINDENT# } #NEWLINE# update_port = self . _core_plugin . update_port ( context , address_pair_port [ 'id' ] , { #NEWLINE# #INDENT# 'port' : port_data , #NEWLINE# #UNINDENT# } ) #NEWLINE# return update_port