NSX|V3+P: Fix ladbalancer utility
Change-Id: I923d5522ab29ec495174a6dd981f938ad742c9a9
This commit is contained in:
parent
32930d0440
commit
e1a12134bd
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user