]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fixing two comments regarding bind_port in ml2
authorMohammad Banikazemi <mb@us.ibm.com>
Tue, 17 Sep 2013 19:56:01 +0000 (15:56 -0400)
committerMohammad Banikazemi <mb@us.ibm.com>
Wed, 18 Sep 2013 01:35:46 +0000 (21:35 -0400)
Fixes two comment lines regarding when bind_port
is called. The correct comment should indicate that
bind_port is called prior to "create_port_precommit or
update_port_precommit" rather than
"create_network_precommit or update_network_precommit".

Change-Id: I5c0cb49efb43b15fdc5a7f88569e19fcf8d72819

neutron/plugins/ml2/driver_api.py
neutron/plugins/ml2/managers.py

index e8cb77b0bf9e6d3de720cfbf38f142ed13252e5f..8925a7666aa9ed47d49685e19c4879846c2f54c7 100644 (file)
@@ -566,7 +566,7 @@ class MechanismDriver(object):
         :param context: PortContext instance describing the port
 
         Called inside transaction context on session, prior to
-        create_network_precommit or update_network_precommit, to
+        create_port_precommit or update_port_precommit, to
         attempt to establish a port binding. If the driver is able to
         bind the port, it calls context.set_binding with the binding
         details.
index 9fc2e5bf5370a9dd961eb27786f8ea71c3364c72..aaf2320b1b61e31331f3e66212bd29ac396b0f9c 100644 (file)
@@ -431,7 +431,7 @@ class MechanismManager(stevedore.named.NamedExtensionManager):
         :param context: PortContext instance describing the port
 
         Called inside transaction context on session, prior to
-        create_network_precommit or update_network_precommit, to
+        create_port_precommit or update_port_precommit, to
         attempt to establish a port binding.
         """
         binding = context._binding