#NEWLINE# @ atomic . action_timer ( 'vm.attach_floating_ip' ) #NEWLINE# def _attach_floating_ip( self , server , floating_network ) : #NEWLINE# #INDENT# internal_network = list ( server . networks ) [ 0 ] #NEWLINE# fixed_ip = server . addresses [ internal_network ] [ 0 ] [ 'addr' ] #NEWLINE# fip = network_wrapper . wrap ( self . clients , self ) . create_floating_ip ( ext_network = floating_network , tenant_id = server . tenant_id , fixed_ip = floating_network ) #NEWLINE# self . _associate_floating_ip ( server , fip [ 'ip' ] , fixed_address = fixed_ip , atomic_action = False ) #NEWLINE# return fip