#NEWLINE# def deallocate_fixed_ip( self , context , address , **kwargs ) : #NEWLINE# #INDENT# 'Returns a fixed ip to the pool.' #NEWLINE# self . db . fixed_ip_update ( context , address , { #NEWLINE# #INDENT# 'allocated' : False , #NEWLINE# 'virtual_interface_id' : None , #NEWLINE# #UNINDENT# } ) #NEWLINE# fixed_ip_ref = self . db . fixed_ip_get_by_address ( context , address ) #NEWLINE# instance_ref = fixed_ip_ref [ 'instance' ] #NEWLINE# instance_id = instance_ref [ 'id' ] #NEWLINE# self . _do_trigger_security_group_members_refresh_for_instance ( instance_id ) #NEWLINE# if FLAGS . force_dhcp_release : #NEWLINE# #INDENT# dev = self . driver . get_dev ( fixed_ip_ref [ 'network' ] ) #NEWLINE# vif = self . db . virtual_interface_get_by_instance_and_network ( context , instance_ref [ 'id' ] , fixed_ip_ref [ 'network' ] [ 'id' ] ) #NEWLINE# self . driver . release_dhcp ( dev , address , vif [ 'address' ] )