#NEWLINE# def run( self , info = None , **kwargs ) : #NEWLINE# #INDENT# if net . cfg . migrate . keep_floatingip : #NEWLINE# #INDENT# info_compute = copy . deepcopy ( info ) #NEWLINE# compute_resource = self . cloud . resources [ utl . COMPUTE_RESOURCE ] #NEWLINE# instance = info_compute [ utl . INSTANCES_TYPE ] . values ( ) [ 0 ] #NEWLINE# networks_info = instance [ utl . INSTANCE_BODY ] [ utl . INTERFACES ] #NEWLINE# old_id = instance [ utl . OLD_ID ] #NEWLINE# for net in networks_info : #NEWLINE# #INDENT# if net [ 'floatingip' ] : #NEWLINE# #INDENT# compute_resource . dissociate_floatingip ( old_id , net [ 'floatingip' ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }