]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Replace "prt" variable by "port"
authorhuangpengtao <huangpengtao@huawei.com>
Fri, 28 Aug 2015 15:20:46 +0000 (23:20 +0800)
committerhuangpengtao <huangpengtao@huawei.com>
Fri, 28 Aug 2015 15:20:46 +0000 (23:20 +0800)
the local variable prt is meaningless,
and port is used popular.

Change-Id: I20849102cf5b4d84433c46791b4b1e2a22dc4739

neutron/db/l3_dvrscheduler_db.py

index 737897a90ea906e2d3f6dfad7d2aef47e9ad6fde..9b8ad89a458ee3d6c6fc872bd69ef423f3376950 100644 (file)
@@ -192,10 +192,10 @@ class L3_DVRsch_db_mixin(l3agent_sch_db.L3AgentSchedulerDbMixin):
                           [n_const.DEVICE_OWNER_DVR_INTERFACE]}
             int_ports = self._core_plugin.get_ports(
                 admin_context, filters=filter_rtr)
-            for prt in int_ports:
+            for port in int_ports:
                 dvr_binding = (ml2_db.
                                get_dvr_port_binding_by_host(context.session,
-                                                            prt['id'],
+                                                            port['id'],
                                                             port_host))
                 if dvr_binding:
                     # unbind this port from router