'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,
# 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)
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.
message = _('%(msg)s')
-class AristaSevicePluginConfigError(exceptions.NeutronException):
+class AristaServicePluginConfigError(exceptions.NeutronException):
message = _('%(msg)s')
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",
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
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))