[OVN] Remove session check in `update_network_postcommit
`
Since [1], when a segment is deleted because the network is before, the segment event handler method ``_handle_segment_change`` does not call ``_notify_mechanism_driver_for_segment_change`` and thus the check performed in ``OVNMechanismDriver.update_network_postcommit`` is not needed anymore. [1]https://review.opendev.org/c/openstack/neutron/+/786373 Closes-Bug: #1739798 Change-Id: I4bb22a0a0a233609a4d23af55a050356049eb214
This commit is contained in:

committed by
Rodolfo Alonso

parent
a0cdb83ff2
commit
3202a5c19e
@@ -31,7 +31,6 @@ from neutron_lib.callbacks import registry
|
||||
from neutron_lib.callbacks import resources
|
||||
from neutron_lib import constants as const
|
||||
from neutron_lib import context as n_context
|
||||
from neutron_lib.db import api as db_api
|
||||
from neutron_lib import exceptions as n_exc
|
||||
from neutron_lib.exceptions import availability_zone as az_exc
|
||||
from neutron_lib.placement import utils as place_utils
|
||||
@@ -634,10 +633,6 @@ class OVNMechanismDriver(api.MechanismDriver):
|
||||
network state. It is up to the mechanism driver to ignore
|
||||
state or state changes that it does not know or care about.
|
||||
"""
|
||||
# FIXME(lucasagomes): We can delete this conditional after
|
||||
# https://bugs.launchpad.net/neutron/+bug/1739798 is fixed.
|
||||
if db_api.is_session_active(context._plugin_context.session):
|
||||
return
|
||||
self._ovn_client.update_network(
|
||||
context._plugin_context, context.current,
|
||||
original_network=context.original)
|
||||
|
Reference in New Issue
Block a user