Merge "Move the get_router ops out from subtransaction"

This commit is contained in:
Jenkins 2016-07-18 14:43:49 +00:00 committed by Gerrit Code Review
commit 1a341b41ac

View File

@ -2081,8 +2081,9 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
router_db = self._get_router(context, lrouter['id'])
self._process_extra_attr_router_create(context, router_db, r)
self._process_nsx_router_create(context, router_db, r)
lrouter = super(NsxVPluginV2, self).get_router(context,
lrouter['id'])
lrouter = super(NsxVPluginV2, self).get_router(context,
lrouter['id'])
try:
router_driver = self._get_router_driver(context, router_db)
if router_driver.get_type() == nsxv_constants.EXCLUSIVE: