Remove gw_port expire call

This was initially added as part of the patch here:
I09e8a694cdff7f64a642a39b45cbd12422132806
However, it doesn't serve a purpose anymore because nothing
references the gateway port DB object before it is deleted.

Closes-Bug: #1716243
Change-Id: I87b614f8aef73aab8b5dd8217c99db1fe3ade742
This commit is contained in:
Kevin Benton 2017-09-10 08:59:23 -07:00
parent 6b650944e2
commit 4d22832092
1 changed files with 0 additions and 2 deletions

View File

@ -436,11 +436,9 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase,
def _delete_router_gw_port_db(self, context, router):
with context.session.begin(subtransactions=True):
gw_port = router.gw_port
router.gw_port = None
if router not in context.session:
context.session.add(router)
context.session.expire(gw_port)
try:
kwargs = {'context': context, 'router_id': router.id}
registry.notify(