diff --git a/vmware_nsx/api_client/base.py b/vmware_nsx/api_client/base.py index 0e4589037b..f8de492581 100644 --- a/vmware_nsx/api_client/base.py +++ b/vmware_nsx/api_client/base.py @@ -154,7 +154,7 @@ class ApiClientBase(object): 'conn': api_client.ctrl_conn_to_str(http_conn)}) http_conn = self._create_connection(*self._conn_params(http_conn)) elif service_unavail: - # http_conn returned a service unaviable response, put other + # http_conn returned a service unavailable response, put other # connections to the same controller at end of priority queue, conns = [] while not self._conn_pool.empty(): diff --git a/vmware_nsx/api_client/eventlet_client.py b/vmware_nsx/api_client/eventlet_client.py index 256cfe521a..63de25cc59 100644 --- a/vmware_nsx/api_client/eventlet_client.py +++ b/vmware_nsx/api_client/eventlet_client.py @@ -84,7 +84,7 @@ class EventletApiClient(base.ApiClientBase): Returns: An available HTTPConnection instance corresponding to the specified conn_params. If a connection did not previously - exist, new connections are created with the highest prioity + exist, new connections are created with the highest priority in the connection pool and one of these new connections returned. """ diff --git a/vmware_nsx/dvs/dvs.py b/vmware_nsx/dvs/dvs.py index 9b20ec968b..1c449a5949 100644 --- a/vmware_nsx/dvs/dvs.py +++ b/vmware_nsx/dvs/dvs.py @@ -92,7 +92,7 @@ class VCManagerBase(object): class DvsManager(VCManagerBase): """Management class for dvs related tasks - The dvs-id is not a class member, ince multiple dvs-es can be supported. + The dvs-id is not a class member, since multiple dvs-es can be supported. """ def _get_dvs_moref_by_id(self, dvs_id): diff --git a/vmware_nsx/plugins/nsx_v/drivers/distributed_router_driver.py b/vmware_nsx/plugins/nsx_v/drivers/distributed_router_driver.py index 67656e2cbc..46fbb3d745 100644 --- a/vmware_nsx/plugins/nsx_v/drivers/distributed_router_driver.py +++ b/vmware_nsx/plugins/nsx_v/drivers/distributed_router_driver.py @@ -315,8 +315,8 @@ class RouterDistributedDriver(router_driver.RouterBaseDriver): self._update_routes(context, router_id, nexthop) self.plugin._update_subnets_and_dnat_firewall(context, router_db) - # Safly remove interface, VDR can have interface to only one subnet - # in a given network. + # Safely remove interface, VDR can have interface to only one + # subnet in a given network. edge_utils.delete_interface( self.nsx_v, context, router_id, network_id, dist=True) diff --git a/vmware_nsx/plugins/nsx_v/drivers/shared_router_driver.py b/vmware_nsx/plugins/nsx_v/drivers/shared_router_driver.py index 6f5bbd8863..2f95c088af 100644 --- a/vmware_nsx/plugins/nsx_v/drivers/shared_router_driver.py +++ b/vmware_nsx/plugins/nsx_v/drivers/shared_router_driver.py @@ -91,7 +91,7 @@ class RouterSharedDriver(router_driver.RouterBaseDriver): def detach_router(self, context, router_id, router): LOG.debug("Detach shared router id %s", router_id) - # if it is the last shared router on this adge - add it to the pool + # if it is the last shared router on this edge - add it to the pool edge_id = edge_utils.get_router_edge_id(context, router_id) if not edge_id: return @@ -163,7 +163,7 @@ class RouterSharedDriver(router_driver.RouterBaseDriver): edge_utils.update_routes(self.nsx_v, context, target_router_id, all_routes, nexthop) - # return a dic of each router -> list of vnics from the other routers + # return a dict of each router -> list of vnics from the other routers def _get_all_routers_vnic_indices(self, context, router_ids): all_vnic_indices = {}