From 34213db15a5b31f3639677751925f754bc09f414 Mon Sep 17 00:00:00 2001 From: Mohammad Banikazemi Date: Tue, 17 Sep 2013 15:56:01 -0400 Subject: [PATCH] Fixing two comments regarding bind_port in ml2 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 | 2 +- neutron/plugins/ml2/managers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/plugins/ml2/driver_api.py b/neutron/plugins/ml2/driver_api.py index e8cb77b0b..8925a7666 100644 --- a/neutron/plugins/ml2/driver_api.py +++ b/neutron/plugins/ml2/driver_api.py @@ -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. diff --git a/neutron/plugins/ml2/managers.py b/neutron/plugins/ml2/managers.py index 9fc2e5bf5..aaf2320b1 100644 --- a/neutron/plugins/ml2/managers.py +++ b/neutron/plugins/ml2/managers.py @@ -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 -- 2.45.2