Fix misspellings words in neutron
All misspelled words found in neutron code have been fixed Change-Id: I3872b8b08d6b8ea9c3973b32cdc9897a94b4cbbc Closes-Bug: #1424139
This commit is contained in:
parent
51edb26950
commit
7c53956d7d
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -31,5 +31,5 @@ class AristaServicePluginRpcError(exceptions.NeutronException):
|
|||
message = _('%(msg)s')
|
||||
|
||||
|
||||
class AristaSevicePluginConfigError(exceptions.NeutronException):
|
||||
class AristaServicePluginConfigError(exceptions.NeutronException):
|
||||
message = _('%(msg)s')
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue