NSXv3: Fix a typo to return router_id
Change-Id: Ie1fbf0caf59b746b73d5f80f2b5d3f3dd85d120c
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user