#NEWLINE# def check_for_fip_and_create_agent_gw_port_on_host_if_not_exists( self , context , port , host ) : #NEWLINE# #INDENT# 'Create fip agent_gw_port on host if not exists' #NEWLINE# fip = self . _get_floatingip_on_port ( context , port_id = port [ 'id' ] ) #NEWLINE# if ( not fip ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# network_id = fip . get ( 'floating_network_id' ) #NEWLINE# agent_gw_port = self . create_fip_agent_gw_port_if_not_exists ( context . elevated ( ) , network_id , host ) #NEWLINE# LOG . debug ( 'Port-in-Migration: Floatingip Agent Gateway port %(gw)s created for the future host: %(dest_host)s' , { #NEWLINE# #INDENT# 'gw' : agent_gw_port , #NEWLINE# 'dest_host' : host , #NEWLINE# #UNINDENT# } )