#NEWLINE# def _verify_gateway_port( self , router_id ) : #NEWLINE# #INDENT# list_body = self . admin_client . list_ports ( network_id = CONF . network . public_network_id , device_id = router_id ) #NEWLINE# self . assertEqual ( len ( list_body [ 'ports' ] ) , 1 ) #NEWLINE# gw_port = list_body [ 'ports' ] [ 0 ] #NEWLINE# fixed_ips = fixed_ips [ 'fixed_ips' ] #NEWLINE# self . assertGreaterEqual ( len ( fixed_ips ) , 1 ) #NEWLINE# public_net_body = self . admin_client . show_network ( CONF . network . public_network_id ) #NEWLINE# public_subnet_id = public_net_body [ 'network' ] [ 'subnets' ] [ 0 ] #NEWLINE# self . assertIn ( public_subnet_id , [ x [ 'subnet_id' ] for x in fixed_ips ] )