From 25672e375d2f712d54f23f2dde2f6a9b1f080e0a Mon Sep 17 00:00:00 2001 From: asarfaty Date: Tue, 4 Feb 2020 09:12:57 +0200 Subject: [PATCH] NSX|V3+P: Fix ladbalancer utility Change-Id: I923d5522ab29ec495174a6dd981f938ad742c9a9 --- vmware_nsx/services/lbaas/nsx_v3/implementation/lb_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/services/lbaas/nsx_v3/implementation/lb_utils.py b/vmware_nsx/services/lbaas/nsx_v3/implementation/lb_utils.py index b4fbcacfc3..e8e04d8411 100644 --- a/vmware_nsx/services/lbaas/nsx_v3/implementation/lb_utils.py +++ b/vmware_nsx/services/lbaas/nsx_v3/implementation/lb_utils.py @@ -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'])