#NEWLINE# @ wrap_check_policy #NEWLINE# def migrate_instance_finish( self , context , instance , migration ) : #NEWLINE# #INDENT# 'Finish migrating the network of an instance.' #NEWLINE# flavor = instance . get_flavor ( ) #NEWLINE# args = dict ( instance_uuid = instance . uuid , rxtx_factor = flavor [ 'rxtx_factor' ] , project_id = instance . project_id , source_compute = migration [ 'source_compute' ] , dest_compute = migration [ 'dest_compute' ] , floating_addresses = None ) #NEWLINE# ( multi_host , addresses ) = self . _get_multi_addresses ( context , instance ) #NEWLINE# if multi_host : #NEWLINE# #INDENT# args [ 'floating_addresses' ] = addresses #NEWLINE# args [ 'host' ] = migration [ 'dest_compute' ] #NEWLINE# #UNINDENT# self . network_rpcapi . migrate_instance_finish ( context , ** args )