NSX|V3+P: Fix ladbalancer utility

Change-Id: I923d5522ab29ec495174a6dd981f938ad742c9a9
This commit is contained in:
asarfaty 2020-02-04 09:12:57 +02:00
parent 32930d0440
commit e1a12134bd
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def get_network_from_subnet(context, plugin, subnet_id):
def get_router_from_network(context, plugin, subnet_id):
subnet = plugin.get_subnet(context, subnet_id)
network_id = subnet['network_id']
ports = plugin._get_router_interface_ports_by_network(
ports = plugin._get_network_interface_ports(
context.elevated(), network_id)
if ports:
router = plugin.get_router(context.elevated(), ports[0]['device_id'])