Spelling mistakes

Change-Id: I035f375f21e42bb36ba0625dc76582f92c67e253
This commit is contained in:
chengebj5238 2018-09-07 10:26:41 +08:00
parent 4aff206e55
commit 3574f6fa54
8 changed files with 11 additions and 11 deletions

View File

@ -337,7 +337,7 @@ No session persistence:
| type | Enum (None) | Must be 'None' |
+-----------+--------------------------+-----------------------------------+
There is no session persistence. Every packet is load-balanced independantly.
There is no session persistence. Every packet is load-balanced independently.
Source IP session persistence:

View File

@ -32,12 +32,12 @@ Set fields are:
* reg6 <- unique port key, for egress remote forwarding processing
* reg7 <- unique port key, for ingress local l2 lookup processing
Ingress Proccessing
Ingress Processing
-------------------
A classification flow should match against vlan membership in case of vlan
network. or use the untagged vlan id 0 to match flat networks traffic.
Egress Proccessing
Egress Processing
------------------
For locally originated traffic, the destination mac and network membership are
translated to port key which is push to reg7, and passed to EGRESS_TABLE.

View File

@ -43,7 +43,7 @@ class ModelsPrinter(object):
implement the methods for the specific output format.
All the models are handled one after the other, and it is guaranteed
that if a model depends on another model, the dependant model will
that if a model depends on another model, the dependent model will
be handled _after_ the model it depends on.
"""
@ -476,7 +476,7 @@ class DfModelsParser(object):
"""Parser for the Dragonflow models schema
This parser iterates over the Dragonflow models by their dependency order
(models that others depend on will be before the dependant ones).
(models that others depend on will be before the dependent ones).
It uses a ModelsPrinter to actually print the information to the supported
formats.
"""

View File

@ -266,7 +266,7 @@ class WSClientDragonflowProtocol(skydive_client.WSClientDebugProtocol):
:type wasClean: bool
:param code: error code of the current error
:type code: integer
:param reason: description of the error that occured
:param reason: description of the error that occurred
:type reason: string
"""
LOG.debug("Client closing %s %s %s", wasClean, code, reason)

View File

@ -22,7 +22,7 @@ from dragonflow.controller import df_base_app
# Exitpoints - Where do packets come out?
# Public Mappings - Metadata that is passed between applications
# Private Mappings - Metadata that is private to this application (e.g. to save
# a state accross tables)
# a state across tables)
Specification = collections.namedtuple(
'Specification',
('states', 'entrypoints', 'exitpoints', 'public_mapping',

View File

@ -49,7 +49,7 @@ CookieBitPair = collections.namedtuple('CookieBitPair', ('offset', 'mask'))
def register_cookie_bits(name, length, is_local=False, app_name=None):
"""Register this many cookie bits for the given 'task'.
There are two types of cookies: global and local.
Global cookies are global accross all applications. All applications share
Global cookies are global across all applications. All applications share
the information, and the cookie bits can only be assigned once.
Local cookies are local to a specific application. That application is
responsible to the data encoded in the cookie. Therefore, local cookie

View File

@ -225,7 +225,7 @@ class DbStore(object):
return self._get_cache(model).get_all(obj, index)
def get_keys(self, obj, index=None):
'''Returns IDs for all objects matching the query. If index is ommited,
'''Returns IDs for all objects matching the query. If index is omitted,
we assume result should contain all object of the model.
>>> db_store.get_keys(Lport(topic='topic1'),

View File

@ -161,12 +161,12 @@ class EtcdDbDriver(db_api.DbApi):
# Create new key
if self.client.create(table_key, "1"):
return 1
raise RuntimeError() # Error occured. Restart the allocation
raise RuntimeError() # Error occurred. Restart the allocation
new_unique = prev_value + 1
if self.client.replace(table_key, str(prev_value), str(new_unique)):
return new_unique
raise RuntimeError() # Error occured. Restart the allocation
raise RuntimeError() # Error occurred. Restart the allocation
def allocate_unique_key(self, table):
while True: