Merge "Fix neutron-ovn-db-sync-util issues"

This commit is contained in:
Zuul 2020-05-22 11:40:57 +00:00 committed by Gerrit Code Review
commit 6941530dca
1 changed files with 4 additions and 3 deletions

View File

@ -63,7 +63,7 @@ class OVNMechanismDriver(mech_driver.OVNMechanismDriver):
def create_port_postcommit(self, context):
port = context.current
self.ovn_client.create_port(context, port)
self.ovn_client.create_port(context._plugin_context, port)
def update_port_precommit(self, context):
pass
@ -71,7 +71,8 @@ class OVNMechanismDriver(mech_driver.OVNMechanismDriver):
def update_port_postcommit(self, context):
port = context.current
original_port = context.original
self.ovn_client.update_port(context, port, original_port)
self.ovn_client.update_port(context._plugin_context, port,
original_port)
def delete_port_precommit(self, context):
pass
@ -81,7 +82,7 @@ class OVNMechanismDriver(mech_driver.OVNMechanismDriver):
port['network'] = context.network.current
# FIXME(lucasagomes): PortContext does not have a session, therefore
# we need to use the _plugin_context attribute.
self.ovn_client.delete_port(context._plugin_context, port)
self.ovn_client.delete_port(context._plugin_context, port['id'])
class AgentNotifierApi(object):