diff --git a/neutron/plugins/nicira/NeutronPlugin.py b/neutron/plugins/nicira/NeutronPlugin.py index 52485635c6..7b34de882a 100644 --- a/neutron/plugins/nicira/NeutronPlugin.py +++ b/neutron/plugins/nicira/NeutronPlugin.py @@ -1163,7 +1163,8 @@ class NvpPluginV2(addr_pair_db.AllowedAddressPairsMixin, "%(tenant_id)s: (%(id)s)"), port_data) self._process_portbindings_create_and_update(context, - port, port_data) + port['port'], + port_data) # DB Operation is complete, perform NVP operation try: port_data = port['port'].copy() @@ -1311,7 +1312,7 @@ class NvpPluginV2(addr_pair_db.AllowedAddressPairsMixin, self._process_portbindings_create_and_update(context, port['port'], - port) + ret_port) return ret_port def delete_port(self, context, id, l3_port_check=True, diff --git a/neutron/tests/unit/nicira/test_nicira_plugin.py b/neutron/tests/unit/nicira/test_nicira_plugin.py index be6c11fc1a..bfb14d49c0 100644 --- a/neutron/tests/unit/nicira/test_nicira_plugin.py +++ b/neutron/tests/unit/nicira/test_nicira_plugin.py @@ -165,7 +165,8 @@ class TestNiciraProvidernet(NiciraPluginV2TestCase): class TestNiciraPortsV2(NiciraPluginV2TestCase, test_plugin.TestPortsV2, - test_bindings.PortBindingsTestCase): + test_bindings.PortBindingsTestCase, + test_bindings.PortBindingsHostTestCaseMixin): VIF_TYPE = portbindings.VIF_TYPE_OVS HAS_PORT_FILTER = True