#NEWLINE# def _handle_external_gateway_added_global_router( self , ri , ext_gw_port ) : #NEWLINE# #INDENT# virtual_gw_port = ext_gw_port [ ha . HA_INFO ] [ 'ha_port' ] #NEWLINE# sub_itfc_ip = virtual_gw_port [ 'fixed_ips' ] [ 0 ] [ 'ip_address' ] #NEWLINE# if self . _is_port_v6 ( ri ) : #NEWLINE# #INDENT# LOG . debug ( 'Adding IPv6 external network port: %(port)s for global router %(r_id)s' , { #NEWLINE# #INDENT# 'port' : ext_gw_port [ 'id' ] , #NEWLINE# 'r_id' : ri . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . _create_sub_interface_v6 ( ri , ext_gw_port , True , sub_itfc_ip ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# LOG . debug ( 'Adding IPv4 external network port: %(port)s for global router %(r_id)s' , { #NEWLINE# #INDENT# 'port' : ext_gw_port [ 'id' ] , #NEWLINE# 'r_id' : ri . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . _create_sub_interface ( ri , ext_gw_port , True , sub_itfc_ip )