]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix misspellings words in neutron
authorEdgar Magana <emagana@gmail.com>
Sat, 21 Feb 2015 07:31:56 +0000 (23:31 -0800)
committerEdgar Magana <emagana@gmail.com>
Tue, 24 Feb 2015 18:10:35 +0000 (10:10 -0800)
All misspelled words found in neutron code have been fixed

Change-Id: I3872b8b08d6b8ea9c3973b32cdc9897a94b4cbbc
Closes-Bug: #1424139

neutron/db/agentschedulers_db.py
neutron/plugins/bigswitch/db/consistency_db.py
neutron/plugins/ml2/drivers/arista/arista_l3_driver.py
neutron/plugins/ml2/drivers/arista/exceptions.py
neutron/services/l3_router/brocade/l3_router_plugin.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/test_basetestcase.py

index 11728e54e7dd2d15af56eee9cb8f4089151da552..732f2d7f76e5df4436bb5872d606a87c02f43ccb 100644 (file)
@@ -271,7 +271,7 @@ class DhcpAgentSchedulerDbMixin(dhcpagentscheduler
                            'agent': binding.dhcp_agent_id})
                 # still continue and allow concurrent scheduling attempt
             except Exception:
-                LOG.exception(_LE("Unexpected exception occured while "
+                LOG.exception(_LE("Unexpected exception occurred while "
                                   "removing network %(net)s from agent "
                                   "%(agent)s"),
                               {'net': binding.network_id,
index 3c9a492f676e75ef6fa05c0d14f0b90f9fa65c25..55212a8c632482c51e8c3b2c674d629730fb7639 100644 (file)
@@ -138,7 +138,7 @@ class HashHandler(object):
                 # no current entry. try to insert to grab lock
                 if not self._insert_empty_hash_with_lock():
                     # A failed insert after missing current record means
-                    # a concurrent insert occured. Start process over to
+                    # a concurrent insert occurred. Start process over to
                     # find the new record.
                     LOG.debug("Concurrent record inserted. Retrying.")
                     time.sleep(0.25)
index 5d9001108d5fa90f12ac17a66ac487fe8d3d5945..a9cda5a02096220583962c9a809731a7d83ac122 100644 (file)
@@ -131,16 +131,16 @@ class AristaL3Driver(object):
         if cfg.CONF.l3_arista.get('primary_l3_host') == '':
             msg = _('Required option primary_l3_host is not set')
             LOG.error(msg)
-            raise arista_exc.AristaSevicePluginConfigError(msg=msg)
+            raise arista_exc.AristaServicePluginConfigError(msg=msg)
         if cfg.CONF.l3_arista.get('mlag_config'):
             if cfg.CONF.l3_arista.get('secondary_l3_host') == '':
                 msg = _('Required option secondary_l3_host is not set')
                 LOG.error(msg)
-                raise arista_exc.AristaSevicePluginConfigError(msg=msg)
+                raise arista_exc.AristaServicePluginConfigError(msg=msg)
         if cfg.CONF.l3_arista.get('primary_l3_host_username') == '':
             msg = _('Required option primary_l3_host_username is not set')
             LOG.error(msg)
-            raise arista_exc.AristaSevicePluginConfigError(msg=msg)
+            raise arista_exc.AristaServicePluginConfigError(msg=msg)
 
     def create_router_on_eos(self, router_name, rdm, server):
         """Creates a router on Arista HW Device.
index 73802c2f7cbb1ea2bf617bd6cae1b9b5f69edb43..278ec7d4b34e8b952fa93fed6f188b0e64f298ef 100644 (file)
@@ -31,5 +31,5 @@ class AristaServicePluginRpcError(exceptions.NeutronException):
     message = _('%(msg)s')
 
 
-class AristaSevicePluginConfigError(exceptions.NeutronException):
+class AristaServicePluginConfigError(exceptions.NeutronException):
     message = _('%(msg)s')
index b13d50a36cfbd73588988bd7c7325f881fa9e89b..ba92880333d1c37e3929f91d7454f62dc328e326 100644 (file)
@@ -111,7 +111,7 @@ class BrocadeSVIPlugin(router.L3RouterPlugin):
                                    str(router['id']))
 
     def add_router_interface(self, context, router_id, interface_info):
-        """creates svi on NOS device and assigns ip addres to SVI."""
+        """creates svi on NOS device and assigns ip address to SVI."""
         LOG.debug("BrocadeSVIPlugin.add_router_interface on VDX: "
                   "router_id=%(router_id)s "
                   "interface_info=%(interface_info)r",
index 3dc41c38d8cd726f13a2b675bc2d99b12716a76e..5217d3c2a385b3b9ab9526730ee0ec7ba31f30a4 100755 (executable)
@@ -785,17 +785,17 @@ class TestDvrRouter(L3AgentTestFramework):
         external_gw_port = floating_agent_gw_port[0]
         fip_ns = self.agent.get_fip_ns(floating_ips[0]['floating_network_id'])
         fip_ns_name = fip_ns.get_name()
-        fg_port_created_succesfully = ip_lib.device_exists_with_ip_mac(
+        fg_port_created_successfully = ip_lib.device_exists_with_ip_mac(
             fip_ns.get_ext_device_name(external_gw_port['id']),
             external_gw_port['ip_cidr'],
             external_gw_port['mac_address'],
             namespace=fip_ns_name)
-        self.assertTrue(fg_port_created_succesfully)
+        self.assertTrue(fg_port_created_successfully)
         # Check fpr-router device has been created
         device_name = fip_ns.get_int_device_name(router.router_id)
-        fpr_router_device_created_succesfully = ip_lib.device_exists(
+        fpr_router_device_created_successfully = ip_lib.device_exists(
             device_name, namespace=fip_ns_name)
-        self.assertTrue(fpr_router_device_created_succesfully)
+        self.assertTrue(fpr_router_device_created_successfully)
 
         # In the router namespace
         # Check rfp-<router-id> is created correctly
index 40b5c43e08487ef4e11ab68800dfb7ae71e59b6f..355c2cf6506bd1f40ff215b0be6f6115fbf6a77a 100644 (file)
@@ -20,20 +20,20 @@ import sys
 from neutron.tests import base
 
 
-class SytemExitTestCase(base.BaseTestCase):
+class SystemExitTestCase(base.BaseTestCase):
 
     def setUp(self):
         def _fail_SystemExit(exc_info):
             if isinstance(exc_info[1], SystemExit):
                 self.fail("A SystemExit was allowed out")
-        super(SytemExitTestCase, self).setUp()
+        super(SystemExitTestCase, self).setUp()
         # add the handler last so reaching it means the handler in BaseTestCase
         # didn't do it's job
         self.addOnException(_fail_SystemExit)
 
     def run(self, *args, **kwargs):
         exc = self.assertRaises(AssertionError,
-                                super(SytemExitTestCase, self).run,
+                                super(SystemExitTestCase, self).run,
                                 *args, **kwargs)
         # this message should be generated when SystemExit is raised by a test
         self.assertIn('A SystemExit was raised during the test.', str(exc))