#NEWLINE# def deallocate_fixed_ip( self , context , address , host = None , teardown = True , instance = None ) : #NEWLINE# #INDENT# "Call the superclass deallocate_fixed_ip if i'm the correct host\n        otherwise call to the correct host\n        " #NEWLINE# fixed_ip = objects . FixedIP . get_by_address ( context , address , expected_attrs = [ 'network' ] ) #NEWLINE# network = fixed_ip . network #NEWLINE# if ( not network . multi_host ) : #NEWLINE# #INDENT# host = network . host #NEWLINE# #UNINDENT# if ( host == self . host ) : #NEWLINE# #INDENT# return super ( RPCAllocateFixedIP , self ) . deallocate_fixed_ip ( context , service , instance = instance ) #NEWLINE# #UNINDENT# if network . multi_host : #NEWLINE# #INDENT# service = objects . Service . get_by_host_and_binary ( context , host , 'nova-network' ) #NEWLINE# if ( ( not service ) or ( not self . servicegroup_api . service_is_up ( service ) ) ) : #NEWLINE# #INDENT# return super ( RPCAllocateFixedIP , self ) . deallocate_fixed_ip ( context , address , teardown = False , instance = instance ) #NEWLINE# #UNINDENT# #UNINDENT# self . network_rpcapi . deallocate_fixed_ip ( context , address , host , instance )