]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fixes typos in comments
authorHui HX Xiang <xianghui@cn.ibm.com>
Wed, 14 Aug 2013 06:52:56 +0000 (23:52 -0700)
committerHui HX Xiang <xianghui@cn.ibm.com>
Thu, 15 Aug 2013 09:51:24 +0000 (02:51 -0700)
Correct some spelling mistakes in comments.
l3_db.py
db_base_plugin_v2.py

Change-Id: I79f2b1b1935ca3805bb1c90c09e5d16f32b165ae

neutron/db/db_base_plugin_v2.py
neutron/db/l3_db.py

index 3890b9e4ad4f285500d190ec09a412e7f4e29a0a..41eb36ec7ff32f35f23417e814f0a7275ae2285b 100644 (file)
@@ -206,7 +206,7 @@ class NeutronDbPluginV2(neutron_plugin_base_v2.NeutronPluginBaseV2,
     _dict_extend_functions = {}
 
     def __init__(self):
-        # NOTE(jkoelker) This is an incomlete implementation. Subclasses
+        # NOTE(jkoelker) This is an incomplete implementation. Subclasses
         #                must override __init__ and setup the database
         #                and not call into this class's __init__.
         #                This connection is setup as memory for the tests.
index d1830778d6058242331a835dc842764b3e674cf8..32371769cf2480d1ade31168f2eac53c59d43dcf 100644 (file)
@@ -75,7 +75,7 @@ class ExternalNetwork(model_base.BASEV2):
 class FloatingIP(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant):
     """Represents a floating IP address.
 
-    This IP address may or many not be allocated to a tenant, and may or
+    This IP address may or may not be allocated to a tenant, and may or
     may not be associated with an internal port/ip address/router.
     """
 
@@ -302,8 +302,8 @@ class L3_NAT_db_mixin(l3.RouterPluginBase):
         try:
             rport_qry = context.session.query(models_v2.Port)
             rports = rport_qry.filter_by(device_id=router_id)
-            # its possible these ports on on the same network, but
-            # different subnet
+            # It's possible these ports are on the same network, but
+            # different subnets.
             new_ipnet = netaddr.IPNetwork(subnet_cidr)
             for p in rports:
                 for ip in p['fixed_ips']: