Merge "Avoid fetching network in _commit_port_binding"

This commit is contained in:
Jenkins 2015-02-24 09:59:43 +00:00 committed by Gerrit Code Review
commit 10b3a5bc90

View File

@ -359,7 +359,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
return (None, None)
oport = self._make_port_dict(port_db)
port = self._make_port_dict(port_db)
network = self.get_network(plugin_context, port['network_id'])
network = new_context.network.current
if port['device_owner'] == const.DEVICE_OWNER_DVR_INTERFACE:
# REVISIT(rkukura): The PortBinding instance from the
# ml2_port_bindings table, returned as cur_binding