]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix misspells
authorNachi Ueno <nachi@ntti3.com>
Tue, 3 Dec 2013 18:43:23 +0000 (10:43 -0800)
committerNachi Ueno <nachi@ntti3.com>
Tue, 3 Dec 2013 23:03:47 +0000 (15:03 -0800)
Change-Id: I8be38727ca55ebbead9032cf69f10a1006fd004b
Closes-bug:1257424

40 files changed:
doc/source/docbkx/quantum-api-1.0/js/trc/util.js
doc/source/docbkx/quantum-api-1.0/xsd/ext/rax-dme/api.xsd
doc/source/docbkx/quantum-api-1.0/xsd/server.xsd
etc/neutron/plugins/metaplugin/metaplugin.ini
neutron/agent/l3_agent.py
neutron/agent/linux/async_process.py
neutron/agent/linux/iptables_manager.py
neutron/agent/linux/ovsdb_monitor.py
neutron/api/extensions.py
neutron/api/v2/attributes.py
neutron/api/v2/resource.py
neutron/common/exceptions.py
neutron/db/db_base_plugin_v2.py
neutron/db/loadbalancer/loadbalancer_db.py
neutron/plugins/bigswitch/plugin.py
neutron/plugins/cisco/common/cisco_exceptions.py
neutron/plugins/cisco/db/n1kv_db_v2.py
neutron/plugins/cisco/l2device_plugin_base.py
neutron/plugins/cisco/n1kv/n1kv_client.py
neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/plugins/metaplugin/README
neutron/plugins/midonet/plugin.py
neutron/plugins/ml2/drivers/mech_arista/README
neutron/plugins/ml2/drivers/mech_arista/db.py
neutron/plugins/ml2/managers.py
neutron/plugins/nicira/NeutronPlugin.py
neutron/plugins/nicira/NeutronServicePlugin.py
neutron/plugins/nicira/NvpApiClient.py
neutron/plugins/nicira/api_client/client.py
neutron/plugins/nicira/api_client/client_eventlet.py
neutron/plugins/nicira/common/sync.py
neutron/plugins/openvswitch/ovs_db_v2.py
neutron/services/loadbalancer/drivers/abstract_driver.py
neutron/services/loadbalancer/drivers/radware/driver.py
neutron/services/vpn/device_drivers/ipsec.py
neutron/tests/unit/ml2/drivers/test_arista_mechanism_driver.py
neutron/tests/unit/openvswitch/test_ovs_lib.py
neutron/tests/unit/test_extension_security_group.py
neutron/tests/unit/test_wsgi.py

index 28267cf0d7502fe8f4acd8ad6eb9b7f51d31a14a..3530c669052f8a1d322f8195a02ccffcdff1e37e 100644 (file)
@@ -36,7 +36,7 @@ trc.util = new Object();
 trc.util.browser = {
     //
     // Returns the current version of IE, or -1 if it's not an IE
-    // browser. This is one of the recomended ways of detecting IE
+    // browser. This is one of the recommended ways of detecting IE
     // see:
     //
     // http://msdn.microsoft.com/en-us/library/ms537509%28VS.85%29.aspx
@@ -174,7 +174,7 @@ trc.util.dom = {
     },
 
     //
-    // Dum utility function for setting the class name of an
+    // Dumb utility function for setting the class name of an
     // element.  Eventually we'll move completely to XHTML, but
     // this will never work in IE 6, so for now we need this
     // method for setting the class name.
index d45f267f64972c36e2ef243df77804a28357ddd8..791bcedee3cb50c1dc8f880fdfc7260b0004f3bd 100644 (file)
 
     <!-- Include/Redefine core schema -->
     <include vc:minVersion="1.0" vc:maxVersion="1.1" schemaLocation="../../api.xsd"/>
-    <!-- 
+    <!--
         For the purposes of extending the schema api.xsd should be a flat XSD.  This is, it should not have
         any <include ..> elements.  That's no the case today. We should generate a flat XSD at compile time
-        and refernce it here.
+        and reference it here.
      -->
     <redefine vc:minVersion="1.1" schemaLocation="../../api.xsd">
         <complexType name="Image">
index 1b6b95333e2050f88a344810e125557eaf80641d..035d9f324fc77ff972b3d4c9a456257d461321ab 100644 (file)
       </xsd:appinfo>
     </annotation>
   </element>
-  
+
   <element name="network" type="csapi:AddressList">
     <annotation>
       <xsd:documentation
       </xsd:appinfo>
     </annotation>
   </element>
-  
+
 
   <!-- Complex Types -->
   <complexType name="Server">
                   xml:lang="EN"
                   xmlns="http://www.w3.org/1999/xhtml">
                   <p>
-                      The detials of a fault that may have occured
+                      The details of a fault that may have occurred
                       while cerating the server or performing a server
                       action.
                   </p>
index 1f162da4ec6de907ffa74b12b411e5323cbe397c..5d4994b8792d1ea413fe896623a43fec71443e4a 100644 (file)
@@ -9,7 +9,7 @@ l3_plugin_list= 'openvswitch:neutron.plugins.openvswitch.ovs_neutron_plugin.OVSN
 default_flavor = 'openvswitch'
 default_l3_flavor = 'openvswitch'
 
-# supported extentions
+# supported extensions
 supported_extension_aliases = 'providernet'
 # specific method map for each flavor to extensions
 extension_map = 'get_port_stats:nvp'
index c9bbe1352555785880a63dfc806adf0b7ebe4efb..5ae6dbc526dd1d5103dfb169876dd3c7b2ae887e 100644 (file)
@@ -632,7 +632,7 @@ class L3NATAgent(firewall_l3_agent.FWaaSL3AgentRpcCallback, manager.Manager):
         """Deal with routers modification and creation RPC message."""
         LOG.debug(_('Got routers updated notification :%s'), routers)
         if routers:
-            # This is needed for backward compatiblity
+            # This is needed for backward compatibility
             if isinstance(routers[0], dict):
                 routers = [router['id'] for router in routers]
             self.updated_routers.update(routers)
index 63bfa939ebcebe0c9716a404d7bb52815f53bf8a..25b311dfbd2da6fce4ffe32d5025ccecae4f4d35 100644 (file)
@@ -180,7 +180,7 @@ class AsyncProcess(object):
                 if not callback():
                     break
             except Exception:
-                LOG.exception(_('An error occured while communicating '
+                LOG.exception(_('An error occurred while communicating '
                                 'with async process [%s].'), self.cmd)
                 break
             # Ensure that watching a process with lots of output does
index 87c7c808482329e5a4238803dc7495b89df795b8..f33478af68da99c802f6317f3304bd690c5feeb6 100644 (file)
@@ -559,7 +559,7 @@ class IptablesManager(object):
             # Leave it alone
             return True
 
-        # We filter duplicates.  Go throught the chains and rules, letting
+        # We filter duplicates.  Go through the chains and rules, letting
         # the *last* occurrence take precendence since it could have a
         # non-zero [packet:byte] count we want to preserve.  We also filter
         # out anything in the "remove" list.
index e0f98cc31f4d14a2a91e1bfd27181b05ecd7f42f..5e58f52f76da8e51e431c1c19f757f1aa9619424 100644 (file)
@@ -91,7 +91,7 @@ class SimpleInterfaceMonitor(OvsdbMonitor):
 
         True will be returned if the monitor process is not active.
         This 'failing open' minimizes the risk of falsely indicating
-        the absense of updates at the expense of potential false
+        the absence of updates at the expense of potential false
         positives.
         """
         return bool(list(self.iter_stdout())) or not self.is_active
index 5fe0ca9219644634d5b214be533daa5cd9f43e99..6b84a0c4f4f3bffdfa210c856e3108628e2a6f18 100644 (file)
@@ -46,7 +46,7 @@ class PluginInterface(object):
         """Checking plugin class.
 
         The __subclasshook__ method is a class method
-        that will be called everytime a class is tested
+        that will be called every time a class is tested
         using issubclass(klass, PluginInterface).
         In that case, it will check that every method
         marked with the abstractmethod decorator is
@@ -667,7 +667,7 @@ class ResourceExtension(object):
         self.attr_map = attr_map
 
 
-# Returns the extention paths from a config entry and the __path__
+# Returns the extension paths from a config entry and the __path__
 # of neutron.extensions
 def get_extensions_path():
     paths = ':'.join(neutron.extensions.__path__)
index ca062c8f2c5ccf797293caf97964918c04ed8ca3..590a4bbc569eb6cb089c84d1b580641c4c70e9df 100644 (file)
@@ -546,7 +546,7 @@ SUBNETS = '%ss' % SUBNET
 # attribute is not required, but will be generated by the plugin
 # if it is not specified.  Particularly, a value of ATTR_NOT_SPECIFIED
 # is different from an attribute that has been specified with a value of
-# None.  For example, if 'gateway_ip' is ommitted in a request to
+# None.  For example, if 'gateway_ip' is omitted in a request to
 # create a subnet, the plugin will receive ATTR_NOT_SPECIFIED
 # and the default gateway_ip will be generated.
 # However, if gateway_ip is specified as None, this means that
index 8a69b555775bb9cc7cb8950690bc2e1c542ce8a8..459390724bf53293ee1ac21ff2bb703731c95342 100644 (file)
@@ -114,7 +114,7 @@ def Resource(controller, faults=None, deserializers=None, serializers=None):
             kwargs = {'body': body, 'content_type': content_type}
             raise webob.exc.HTTPNotImplemented(**kwargs)
         except Exception as e:
-            # NOTE(jkoelker) Everyting else is 500
+            # NOTE(jkoelker) Everything else is 500
             LOG.exception(_('%s failed'), action)
             # Do not expose details of 500 error to clients.
             msg = _('Request Failed: internal server error while '
index 5227a3724d6baea0ca5e3e070bb1726226ee9952..9e77832b4d623b23cd4a8ef55d76d517d6dc288b 100644 (file)
@@ -233,7 +233,7 @@ class PreexistingDeviceFailure(NeutronException):
 
 
 class SudoRequired(NeutronException):
-    message = _("Sudo priviledge is required to run this command.")
+    message = _("Sudo privilege is required to run this command.")
 
 
 class QuotaResourceUnknown(NotFound):
index 64674352ded75dc8f885df3bbf89ae4ecef0bbfa..d871c174fbc5c598d5275d1437095e8806b46950 100644 (file)
@@ -944,7 +944,7 @@ class NeutronDbPluginV2(neutron_plugin_base_v2.NeutronPluginBaseV2,
             context.session.commit()
         except Exception:
             with excutils.save_and_reraise_exception():
-                LOG.error(_("An exception occured while creating "
+                LOG.error(_("An exception occurred while creating "
                             "the %(resource)s:%(item)s"),
                           {'resource': resource, 'item': item})
                 context.session.rollback()
index 18e8d39f3fb9f2b2522d318757f97ae688139a3f..5968c9a7c7a553090c3b2bf700d87e25f261a1ac 100644 (file)
@@ -746,7 +746,7 @@ class LoadBalancerPluginDb(LoadBalancerPluginBase,
         v = health_monitor['health_monitor']
         tenant_id = self._get_tenant_id_for_create(context, v)
         with context.session.begin(subtransactions=True):
-            # setting ACTIVE status sinse healthmon is shared DB object
+            # setting ACTIVE status since healthmon is shared DB object
             monitor_db = HealthMonitor(id=uuidutils.generate_uuid(),
                                        tenant_id=tenant_id,
                                        type=v['type'],
index ab2e7bf7c819807fc7cf4de62c3db7bd43382a8a..b949d2b83cb826c7a6234f0abae8c119383e0076 100644 (file)
@@ -449,7 +449,7 @@ class NeutronRestProxyV2(db_base_plugin_v2.NeutronDbPluginV2,
         neutron_extensions.append_api_extensions_path(extensions.__path__)
 
         # 'servers' is the list of network controller REST end-points
-        # (used in order specified till one suceeds, and it is sticky
+        # (used in order specified till one succeeds, and it is sticky
         # till next failure). Use 'server_auth' to encode api-key
         servers = cfg.CONF.RESTPROXY.servers
         server_auth = cfg.CONF.RESTPROXY.server_auth
index 5b55aabe6c151b264b7364a37a57aa9a18b6a926..b743d69b95719a1336fef2703123b52abf1975ae 100644 (file)
@@ -192,7 +192,7 @@ class VSMConnectionFailed(exceptions.ServiceUnavailable):
 
 
 class VSMError(exceptions.NeutronException):
-    """Error has occured on the VSM."""
+    """Error has occurred on the VSM."""
     message = _("Internal VSM Error: %(reason)s.")
 
 
index 9bea96a37eed86a068c6d16401d12cadfd546991..7c7de737dc5aaba4726413177558a96da4dd849f 100644 (file)
@@ -338,7 +338,7 @@ def get_segment_range(network_profile):
 
 def get_multicast_ip(network_profile):
     """
-    Retreive a multicast ip from the defined pool.
+    Retrieve a multicast ip from the defined pool.
 
     :params network_profile: object of type network profile
     :returns: string representing multicast IP
index 453302fcbc7e2797d30e388df0e5142c5916d9f1..c0ac05f83ab098cff249e9da802c06ae57c564cd 100644 (file)
@@ -178,7 +178,7 @@ class L2DevicePluginBase(object):
         """Check plugin class.
 
         The __subclasshook__ method is a class method
-        that will be called everytime a class is tested
+        that will be called every time a class is tested
         using issubclass(klass, Plugin).
         In that case, it will check that every method
         marked with the abstractmethod decorator is
index f6efd6b5e009e767a51b18a87117bc85f8b9a191..77ecc1e1a0fa8115bee4509352dac3af3db4eb65 100644 (file)
@@ -99,7 +99,7 @@ class Client(object):
     Hence for every unique combination of a network and a policy-profile, a
     unique vm-network will be created and a reference to the port will be
     added. If the same combination of network and policy-profile is used by
-    another port, the refernce to that port will be added to the same
+    another port, the references to that port will be added to the same
     vm-network.
 
 
index 1e695912df2cacbfa31bd8b3c6507e504f30d16b..ad8f623918096654ac673c218fea9688f1400aac 100644 (file)
@@ -182,7 +182,7 @@ class N1kvNeutronPluginV2(db_base_plugin_v2.NeutronDbPluginV2,
         """
         Setup Cisco Nexus 1000V related parameters and pull policy profiles.
 
-        Retreive all the policy profiles from the VSM when the plugin is
+        Retrieve all the policy profiles from the VSM when the plugin is
         is instantiated for the first time and then continue to poll for
         policy profile updates.
         """
@@ -973,7 +973,7 @@ class N1kvNeutronPluginV2(db_base_plugin_v2.NeutronDbPluginV2,
 
     def _get_segmentation_id(self, context, id):
         """
-        Retreive segmentation ID for a given network.
+        Retrieve segmentation ID for a given network.
 
         :param context: neutron api request context
         :param id: UUID of the network
@@ -1169,7 +1169,7 @@ class N1kvNeutronPluginV2(db_base_plugin_v2.NeutronDbPluginV2,
 
     def get_network(self, context, id, fields=None):
         """
-        Retreive a Network.
+        Retrieve a Network.
 
         :param context: neutron api request context
         :param id: UUID representing the network to fetch
@@ -1184,7 +1184,7 @@ class N1kvNeutronPluginV2(db_base_plugin_v2.NeutronDbPluginV2,
 
     def get_networks(self, context, filters=None, fields=None):
         """
-        Retreive a list of networks.
+        Retrieve a list of networks.
 
         :param context: neutron api request context
         :param filters: a dictionary with keys that are valid keys for a
index ee6e0b5de547b0de362a9011962d547f519112fa..be798a591f81bf94a3ea008465099e834f0b90ad 100755 (executable)
@@ -132,7 +132,7 @@ class LinuxBridgeManager:
         if 0 <= int(segmentation_id) <= constants.MAX_VXLAN_VNI:
             return VXLAN_INTERFACE_PREFIX + str(segmentation_id)
         else:
-            LOG.warning(_("Invalid Segementation ID: %s, will lead to "
+            LOG.warning(_("Invalid Segmentation ID: %s, will lead to "
                           "incorrect vxlan device name"), segmentation_id)
 
     def get_all_neutron_bridges(self):
index 5b634b3903bce6140d9d6b025e241a86aea8a90d..8dbc47756ad61b2c143121638e0fdaec12179e44 100644 (file)
@@ -2,8 +2,8 @@
 
 This plugin supports multiple plugin at same time. This plugin is for L3 connectivility
 between networks which are realized by different plugins.This plugin adds new attributes 'flavor:network' and 'flavor:router".
-flavor:network corresponds to specific l2 plugin ( flavor-plugin mapping could be configureable by plugin_list config.
-flavor:router corresponds to specific l3 plugin ( flavor-plugin mapping could be configureable by l3_plugin_list config. Note that Metaplugin can provide l3 functionaliteis for l2 plugin which didn't support l3 extension yet.
+flavor:network corresponds to specific l2 plugin ( flavor-plugin mapping could be configurable by plugin_list config.
+flavor:router corresponds to specific l3 plugin ( flavor-plugin mapping could be configurable by l3_plugin_list config. Note that Metaplugin can provide l3 functionaliteis for l2 plugin which didn't support l3 extension yet.
 This plugin also support extensions. We can map extension to plugin by using extension_map config.
 
 [database]
@@ -32,7 +32,7 @@ default_flavor = 'openvswitch'
 # Default value for l3
 default_l3_flavor = 'openvswitch'
 
-# supported extentions
+# supported extensions
 supported_extension_aliases = 'providernet'
 # specific method map for each flavor to extensions
 extension_map = 'get_port_stats:nvp'
@@ -76,7 +76,7 @@ Vlan ID range of each plugin should be different, since Metaplugin dose not mana
 #- limitations
 
 Basically, All plugin should inherit NeutronDbPluginV2.
-Metaplugin assumes all plugin share same Database expecially for IPAM part in NeutronV2 API.
+Metaplugin assumes all plugin share same Database especially for IPAM part in NeutronV2 API.
 You can use another plugin if you use ProxyPluginV2, which proxies request to the another neutron server.
 
 Example flavor configration for ProxyPluginV2
index d5eb60e4b93508147118bc2fb1323acb8666df4d..8016ef56abea8f3008694e47bd3ee65608b76d5f 100644 (file)
@@ -1045,7 +1045,7 @@ class MidonetPluginV2(db_base_plugin_v2.NeutronDbPluginV2,
         return info
 
     def update_floatingip(self, context, id, floatingip):
-        """Handle floating IP assocation and disassociation."""
+        """Handle floating IP association and disassociation."""
         LOG.debug(_("MidonetPluginV2.update_floatingip called: id=%(id)s "
                     "floatingip=%(floatingip)s "),
                   {'id': id, 'floatingip': floatingip})
index bcdec5e543e8353a7ef313f451fdedc09a475004..6e30bf9e553fae716d204bc863e0e8c09152ce90 100644 (file)
@@ -3,7 +3,7 @@ Arista Neutron ML2 Mechanism Driver
 
 This mechanism driver implements ML2 Driver API and is used to manage the virtual and physical networks using Arista Hardware.
 
-Note: Initial verison of this driver support VLANs only.
+Note: Initial version of this driver support VLANs only.
 
 For more details on use please refer to:
 https://wiki.openstack.org/wiki/Arista-neutron-ml2-driver
index 885d76832b06d8de3f3942f428f6bcfdc53361b2..3006b9e54dedbe35a97e753060f4b4895ed4c917 100644 (file)
@@ -128,7 +128,7 @@ def num_provisioned_tenants():
 
 
 def remember_vm(vm_id, host_id, port_id, network_id, tenant_id):
-    """Stores all relevent information about a VM in repository.
+    """Stores all relevant information about a VM in repository.
 
     :param vm_id: globally unique identifier for VM instance
     :param host_id: ID of the host where the VM is placed
@@ -154,7 +154,7 @@ def remember_vm(vm_id, host_id, port_id, network_id, tenant_id):
 
 
 def forget_vm(vm_id, host_id, port_id, network_id, tenant_id):
-    """Removes all relevent information about a VM from repository.
+    """Removes all relevant information about a VM from repository.
 
     :param vm_id: globally unique identifier for VM instance
     :param host_id: ID of the host where the VM is placed
@@ -171,7 +171,7 @@ def forget_vm(vm_id, host_id, port_id, network_id, tenant_id):
 
 
 def remember_network(tenant_id, network_id, segmentation_id):
-    """Stores all relevent information about a Network in repository.
+    """Stores all relevant information about a Network in repository.
 
     :param tenant_id: globally unique neutron tenant identifier
     :param network_id: globally unique neutron network identifier
@@ -192,7 +192,7 @@ def remember_network(tenant_id, network_id, segmentation_id):
 
 
 def forget_network(tenant_id, network_id):
-    """Deletes all relevent information about a Network from repository.
+    """Deletes all relevant information about a Network from repository.
 
     :param tenant_id: globally unique neutron tenant identifier
     :param network_id: globally unique neutron network identifier
index aaf2320b1b61e31331f3e66212bd29ac396b0f9c..a4db860b2e51e99327787eacce169b8d1c9c8b75 100644 (file)
@@ -359,7 +359,7 @@ class MechanismManager(stevedore.named.NamedExtensionManager):
         if any mechanism driver create_port_postcommit call fails.
 
         Called after the database transaction. Errors raised by
-        mechanism drivers are left to propogate to the caller, where
+        mechanism drivers are left to propagate to the caller, where
         the port will be deleted, triggering any required
         cleanup. There is no guarantee that all mechanism drivers are
         called in this case.
index dff17a4ca1da428fdd47989c4440e51b34a32bb9..54fd34e16b4516d86737e91eb282208e461cbb28 100644 (file)
@@ -412,7 +412,7 @@ class NvpPluginV2(addr_pair_db.AllowedAddressPairsMixin,
                                                   network_bindings, max_ports,
                                                   allow_extra_lswitches)
         except NvpApiClient.NvpApiException:
-            err_desc = _("An exception occured while selecting logical "
+            err_desc = _("An exception occurred while selecting logical "
                          "switch for the port")
             LOG.exception(err_desc)
             raise nvp_exc.NvpPluginException(err_msg=err_desc)
@@ -443,7 +443,7 @@ class NvpPluginV2(addr_pair_db.AllowedAddressPairsMixin,
             # rollback the neutron-nvp port mapping
             nicira_db.delete_neutron_nvp_port_mapping(context.session,
                                                       port_id)
-            msg = (_("An exception occured while creating the "
+            msg = (_("An exception occurred while creating the "
                      "quantum port %s on the NVP plaform") % port_id)
             LOG.exception(msg)
 
index 6841698994e58d742a7bf76f55ccef6b02848eb3..5930e4c01e2768af4c9bf592bdf3aafc60101317 100644 (file)
@@ -413,7 +413,7 @@ class NvpAdvancedPlugin(sr_db.ServiceRouter_mixin,
                 self.cluster, lswitch['uuid'], tenant_id,
                 '', '', lrouter['uuid'], True)
         except NvpApiClient.NvpApiException:
-            msg = (_("An exception occured while creating a port "
+            msg = (_("An exception occurred while creating a port "
                      "on lswitch %s") % lswitch['uuid'])
             LOG.exception(msg)
             raise q_exc.NeutronException(message=msg)
index ebc3f1d48d09d8f0209569ca568b4f505bcbe706..6d6272230e384f784f77c72ea6bcc78f411cb68c 100644 (file)
@@ -96,10 +96,10 @@ class NVPApiHelper(client_eventlet.NvpApiClientEventlet):
         Assumes same password is used for all controllers.
 
         :param user: NVP controller user (usually admin). Provided for
-                backwards compatability. In the  normal mode of operation
+                backwards compatibility. In the  normal mode of operation
                 this should be None.
         :param password: NVP controller password. Provided for backwards
-                compatability. In the normal mode of operation this should
+                compatibility. In the normal mode of operation this should
                 be None.
 
         :returns: Does not return a value.
index 6a86695eea97e048e64f23838a473bf2701f5a70..8faacb2f15a02c11cde41d002df4f6e336950fc1 100644 (file)
@@ -205,7 +205,7 @@ class NvpApiClient(object):
                 provider_sem.release()
         else:
             LOG.debug(_("Waiting for auth to complete"))
-            # Wait until we can aquire then release
+            # Wait until we can acquire then release
             provider_sem.acquire(blocking=True)
             provider_sem.release()
 
index 25243e43925cb03203af5f35b3efa542b9d30d1e..79ab60b2e02625029ca319c47b112f4fbfa56d3a 100644 (file)
@@ -112,7 +112,7 @@ class NvpApiClientEventlet(client.NvpApiClient):
             # self._concurrent_connections temporarily)
             if not result_conn:
                 conn = self._create_connection(*conn_params)
-                conn.priority = 0  # redirect connections ahve highest priority
+                conn.priority = 0  # redirect connections have highest priority
                 conn.no_release = True
                 result_conn = conn
         else:
index dfbc79afa91d3f4e0bb3ad65e6a58e452c335856..67a54b5b6cf1cc9ced319281e8a6e59d1b294a9a 100644 (file)
@@ -545,7 +545,7 @@ class NvpSynchronizer():
             sleep_interval = self._sync_backoff
             # Cap max back off to 64 seconds
             self._sync_backoff = min(self._sync_backoff * 2, 64)
-            LOG.exception(_("An error occured while communicating with "
+            LOG.exception(_("An error occurred while communicating with "
                             "NVP backend. Will retry synchronization "
                             "in %d seconds"), sleep_interval)
             return sleep_interval
index 3c52481b7eba8bebf16279f4c1d3f7b5b85db3da..8155d2493e311baff4625b01c6616749946eb0c1 100644 (file)
@@ -392,9 +392,9 @@ def add_tunnel_endpoint(ip, max_retries=10):
 
                 return tunnel
         except db_exc.DBDuplicateEntry:
-            # a concurrent transaction has been commited, try again
+            # a concurrent transaction has been committed, try again
             LOG.debug(_('Adding a tunnel endpoint failed due to a concurrent'
-                        'transaction had been commited (%s attempts left)'),
+                        'transaction had been committed (%s attempts left)'),
                       max_retries - (i + 1))
 
     raise q_exc.NeutronException(
index b3519bffe5ea8efe6da50b2770adb4af139b4d70..5659c3e4b278c7b030a23a3a2325290e84a0c86f 100644 (file)
@@ -52,7 +52,7 @@ class LoadBalancerAbstractDriver(object):
     def delete_vip(self, context, vip):
         """A real driver would invoke a call to his backend
         and try to delete the Vip.
-        if the deletion was successfull, delete the record from the database.
+        if the deletion was successful, delete the record from the database.
         if the deletion has failed, set the Vip status to ERROR.
         """
         pass
index ad816374e5e644d3fb89f3877569eb3d57049d55..b76a74c14c39afafb1fdc997bbb07c72a312022d 100644 (file)
@@ -402,7 +402,7 @@ class LoadBalancerDriver(abstract_driver.LoadBalancerAbstractDriver):
     def _get_service(self, pool_id, network_id):
         """Get a service name.
 
-        if you cant find one,
+        if you can't find one,
         create a service and create l2_l2 WF.
 
         """
@@ -468,7 +468,7 @@ class LoadBalancerDriver(abstract_driver.LoadBalancerAbstractDriver):
 
     def _create_workflow(self, wf_name, wf_template_name,
                          create_workflow_params=None):
-        """Create a WF if it doesnt exists yet."""
+        """Create a WF if it doesn't exists yet."""
         if not self.workflow_templates_exists:
                 self._verify_workflow_templates()
         if not self._workflow_exists(wf_name):
@@ -484,7 +484,7 @@ class LoadBalancerDriver(abstract_driver.LoadBalancerAbstractDriver):
             LOG.debug(_('create_workflow response: %s'), str(response))
 
     def _verify_workflow_templates(self):
-        """Verify the existance of workflows on vDirect server."""
+        """Verify the existence of workflows on vDirect server."""
         workflows = {self.l2_l3_wf_name:
                      False, self.l4_wf_name: False}
         resource = '/api/workflowTemplate'
index ad16996dc54aeaef0df8c41be7a96f1a7b622d39..1d2d602c69ec6aae2f0710b5ad949ae76520fe04 100644 (file)
@@ -544,7 +544,7 @@ class IPsecDriver(device_drivers.DeviceDriver):
     def ensure_process(self, process_id, vpnservice=None):
         """Ensuring process.
 
-        If the process dosen't exist, it will create process
+        If the process doesn't exist, it will create process
         and store it in self.processs
         """
         process = self.processes.get(process_id)
index 2eac54b778b66357ce477c8116dce3bbd25df061..c0348291afb62723e022cb789f3f66d3a6851cb1 100644 (file)
@@ -38,8 +38,8 @@ def setup_valid_config():
 class AristaProvisionedVlansStorageTestCase(base.BaseTestCase):
     """Test storing and retriving functionality of Arista mechanism driver.
 
-    Tests all methods of this class by invoking them seperately as well
-    as a goup.
+    Tests all methods of this class by invoking them separately as well
+    as a group.
     """
 
     def setUp(self):
index f313a12db333dbb1948c905bfbf57ce69b34ea17..01a27ac5b8d7ba5c33fc67b0bb953936a51cbb3a 100644 (file)
@@ -100,7 +100,7 @@ class TestBaseOVS(base.BaseTestCase):
 
 
 class OVS_Lib_Test(base.BaseTestCase):
-    """A test suite to excercise the OVS libraries shared by Neutron agents.
+    """A test suite to exercise the OVS libraries shared by Neutron agents.
 
     Note: these tests do not actually execute ovs-* utilities, and thus
     can run on any system.  That does, however, limit their scope.
index d77f200a8e4ff75c5a17cfa2a6ac558049843b2f..38c2c8df3b3e942f525577b01fb61196d3a7edf5 100644 (file)
@@ -1248,7 +1248,7 @@ class TestSecurityGroups(SecurityGroupDBTestCase):
                 self.deserialize(self.fmt, res)
                 self.assertEqual(res.status_int, webob.exc.HTTPConflict.code)
 
-    def test_create_security_group_rule_differnt_security_group_ids(self):
+    def test_create_security_group_rule_different_security_group_ids(self):
         if self._skip_native_bulk:
             self.skipTest("Plugin does not support native bulk "
                           "security_group_rule create")
index 52e946a9cb6750b4f90d9ab7ebc5675a11bdf580..eeafa617ee2df0efde704b00e4774da477105cb6 100644 (file)
@@ -572,7 +572,7 @@ class DictSerializerTest(base.BaseTestCase):
     def test_dispatch_default(self):
         serializer = wsgi.DictSerializer()
         self.assertEqual(
-            serializer.serialize({}, 'NonExistantAction'), '')
+            serializer.serialize({}, 'NonExistentAction'), '')
 
 
 class JSONDictSerializerTest(base.BaseTestCase):