NSXv3: Fix a typo to return router_id

Change-Id: Ie1fbf0caf59b746b73d5f80f2b5d3f3dd85d120c
This commit is contained in:
Tong Liu
2017-12-01 11:43:37 -08:00
parent ac82ea9271
commit 100360c722

View File

@@ -47,7 +47,7 @@ def get_router_from_network(context, plugin, subnet_id):
if ports:
router = plugin.get_router(context, ports[0]['device_id'])
if router.get('external_gateway_info'):
return True
return router['id']
def get_lb_router_id(context, plugin, lb):