Fix a spelling typo in error message

occured -> occurred
for arista_l3_driver.py

Also fixed following spelling typo in comments:
authentification -> authentication
genric -> generic
vaild -> valid
infromation -> information

Change-Id: Ic4b7c5a990a8de7576334a9715dd78ddba63a539
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
changes/86/227286/1
Zhao Lei 7 years ago
parent 72c64a55c9
commit 4a1f122c1b

@ -380,7 +380,7 @@ class AristaL3Driver(object):
LOG.info(_LI('Results of execution on Arista EOS: %s'), ret)
except Exception:
msg = (_('Error occured while trying to execute '
msg = (_('Error occurred while trying to execute '
'commands %(cmd)s on EOS %(host)s') %
{'cmd': full_command, 'host': server})
LOG.exception(msg)

@ -60,7 +60,7 @@ class AristaRPCWrapper(object):
self.cli_commands['timestamp'] = []
def check_cli_commands(self):
"""Checks whether the CLI commands are vaild.
"""Checks whether the CLI commands are valid.
This method tries to execute the commands on EOS and if it succeedes
the command is stored.
@ -95,7 +95,7 @@ class AristaRPCWrapper(object):
def plug_port_into_network(self, vm_id, host_id, port_id,
net_id, tenant_id, port_name, device_owner):
"""Genric routine plug a port of a VM instace into network.
"""Generic routine plug a port of a VM instace into network.
:param vm_id: globally unique identifier for VM instance
:param host: ID of the host where the VM is placed

@ -159,7 +159,7 @@ class AristaDriver(driver_api.MechanismDriver):
' in Arista DB'), network_id)
def delete_network_precommit(self, context):
"""Delete the network infromation from the DB."""
"""Delete the network information from the DB."""
network = context.current
network_id = network['id']
tenant_id = network['tenant_id']
@ -192,7 +192,7 @@ class AristaDriver(driver_api.MechanismDriver):
raise ml2_exc.MechanismDriverError()
def create_port_precommit(self, context):
"""Remember the infromation about a VM and its ports
"""Remember the information about a VM and its ports
A VM information, along with the physical host information
is saved.

@ -1003,7 +1003,7 @@ class SyncServiceTest(testlib_api.SqlTestCase):
class fake_keystone_info_class(object):
"""To generate fake Keystone Authentification token information
"""To generate fake Keystone Authentication token information
Arista Driver expects Keystone auth info. This fake information
is for testing only

@ -349,7 +349,7 @@ class AristaDriverTestCase(testlib_api.SqlTestCase):
class fake_keystone_info_class(object):
"""To generate fake Keystone Authentification token information
"""To generate fake Keystone Authentication token information
Arista Driver expects Keystone auth info. This fake information
is for testing only

Loading…
Cancel
Save