From 4a1f122c1bcf64054ebd716256f599bc36a470b7 Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Thu, 24 Sep 2015 18:18:01 +0800 Subject: [PATCH] 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 --- networking_arista/l3Plugin/arista_l3_driver.py | 2 +- networking_arista/ml2/arista_ml2.py | 4 ++-- networking_arista/ml2/mechanism_arista.py | 4 ++-- .../tests/unit/ml2/test_arista_mechanism_driver.py | 2 +- networking_arista/tests/unit/ml2/test_mechanism_arista.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/networking_arista/l3Plugin/arista_l3_driver.py b/networking_arista/l3Plugin/arista_l3_driver.py index 7513d033..e7ab16b3 100644 --- a/networking_arista/l3Plugin/arista_l3_driver.py +++ b/networking_arista/l3Plugin/arista_l3_driver.py @@ -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) diff --git a/networking_arista/ml2/arista_ml2.py b/networking_arista/ml2/arista_ml2.py index f8d180e6..e8c3bcd4 100644 --- a/networking_arista/ml2/arista_ml2.py +++ b/networking_arista/ml2/arista_ml2.py @@ -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 diff --git a/networking_arista/ml2/mechanism_arista.py b/networking_arista/ml2/mechanism_arista.py index 6e25862a..e58cf7bd 100644 --- a/networking_arista/ml2/mechanism_arista.py +++ b/networking_arista/ml2/mechanism_arista.py @@ -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. diff --git a/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py b/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py index 13cb3b19..281c539f 100644 --- a/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py +++ b/networking_arista/tests/unit/ml2/test_arista_mechanism_driver.py @@ -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 diff --git a/networking_arista/tests/unit/ml2/test_mechanism_arista.py b/networking_arista/tests/unit/ml2/test_mechanism_arista.py index 1e777a55..7c29f77c 100644 --- a/networking_arista/tests/unit/ml2/test_mechanism_arista.py +++ b/networking_arista/tests/unit/ml2/test_mechanism_arista.py @@ -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