Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 76595ea

Browse files
committed
Remove some extra spaces
1 parent 8402e3d commit 76595ea

6 files changed

Lines changed: 40 additions & 45 deletions

File tree

pyof/foundation/base.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def __init__(self, value=None, enum_ref=None):
5050
"""The constructor takes the optional parameters below.
5151
5252
Args:
53-
value : The type's value.
53+
value: The type's value.
5454
enum_ref (type): If :attr:`value` is from an Enum, specify
55-
its type.
55+
its type.
5656
"""
5757
self._value = value
5858
self.enum_ref = enum_ref
@@ -347,7 +347,7 @@ def get_pyof_version(module_fullname):
347347
(e.g.: pyof.v0x01.common.header)
348348
349349
Returns:
350-
str : The module version, on the format 'v0x0?' if any. Or None
350+
str: The module version, on the format 'v0x0?' if any. Or None
351351
if there isn't a version on the fullname.
352352
"""
353353
ver_module_re = re.compile(r'(pyof\.)(v0x\d+)(\..*)')
@@ -371,12 +371,12 @@ def replace_pyof_version(module_fullname, version):
371371
version (str): The version to be 'inserted' on the module fullname.
372372
373373
Returns:
374-
str : module fullname
375-
The new module fullname, with the replaced version,
376-
on the format "pyof.v0x01.common.header". If the requested
377-
version is the same as the one of the module_fullname or if
378-
the module_fullname is not a 'OF version' specific module,
379-
returns None.
374+
str: module fullname
375+
The new module fullname, with the replaced version,
376+
on the format "pyof.v0x01.common.header". If the requested
377+
version is the same as the one of the module_fullname or if
378+
the module_fullname is not a 'OF version' specific module,
379+
returns None.
380380
"""
381381
module_version = MetaStruct.get_pyof_version(module_fullname)
382382
if not module_version or module_version == version:

pyof/v0x01/asynchronous/error_msg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def pack(self, value=None):
197197
After that, :attr:`data`'s value is restored.
198198
199199
Returns:
200-
bytes : The binary representation.
200+
bytes: The binary representation.
201201
"""
202202
if value is None:
203203
data_backup = None

pyof/v0x01/common/phy_port.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ class PhyPort(GenericStruct):
133133
134134
The port_no field is a value the datapath associates with a physical port.
135135
The hw_addr field typically is the MAC address for the port;
136-
:data:`OFP_ETH_ALEN` is 6. The name field is a
137-
null-terminated string containing a human-readable name for the interface.
138-
The value of :data:`OFP_MAX_PORT_NAME_LEN` is 16.
136+
:data:`OFP_ETH_ALEN` is 6. The name field is a null-terminated string
137+
containing a human-readable name for the interface. The value of
138+
:data:`OFP_MAX_PORT_NAME_LEN` is 16.
139139
140140
:attr:`curr`, :attr:`advertised`, :attr:`supported` and :attr:`peer` are
141141
bitmaps of :class:`~pyof.v0x01.common.phy_port.PortFeatures` enum values

pyof/v0x04/common/port.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class PortConfig(GenericBitMask):
5353
These flags are used in :class:`Port` to describe the current
5454
configuration. They are used in the
5555
:class:`~pyof.v0x04.controller2switch.port_mod.PortMod`
56-
message to configure
57-
the port's behavior.
56+
message to configure the port's behavior.
5857
5958
The :attr:`OFPPC_PORT_DOWN` bit indicates that the port has been
6059
administratively brought down and should not be used by OpenFlow. The

pyof/v0x04/common/table_feature.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -284,24 +284,22 @@ def __init__(self, table_id=Table.OFPTT_ALL, name="",
284284
"""The constructor of TableFeatures receives the paramters below.
285285
286286
Args:
287-
table_id(int): Indetifier of table.The default value
288-
OFPTT_ALL(0xff) will apply the configuration
289-
to all tables in the switch.
290-
name(Char): Characters representing the table name.
287+
table_id(int): Indetifier of table.The default value
288+
OFPTT_ALL(0xff) will apply the configuration to all tables in
289+
the switch.
290+
name(Char): Characters representing the table name.
291291
metadata_match(int): Indicate the bits of the metadata field that
292-
the table can match on.The default value
293-
0xFFFFFFFFFFFFFFFF indicates that the table
294-
can match the full metadata field.
292+
the table can match on.The default value 0xFFFFFFFFFFFFFFFF
293+
indicates that the table can match the full metadata field.
295294
metadata_write(int): Indicates the bits of the metadata field that
296-
the table can write using the
297-
OFPIT_WRITE_METADATA instruction.The default
298-
value 0xFFFFFFFFFFFFFFFF indicates that the
299-
table can write the full metadata field.
300-
config(int): Field reseved for future use.
301-
max_entries(int): Describe the maximum number of flow entries
302-
that can be inserted into that table.
295+
the table can write using the OFPIT_WRITE_METADATA instruction.
296+
The default value 0xFFFFFFFFFFFFFFFF indicates that the table
297+
can write the full metadata field.
298+
config(int): Field reseved for future use.
299+
max_entries(int): Describe the maximum number of flow entries that
300+
can be inserted into that table.
303301
properties(~pyof.v0x04.controller2switch.common.Property):
304-
List of Property intances.
302+
List of Property intances.
305303
"""
306304
super().__init__()
307305
self.table_id = table_id

pyof/v0x04/controller2switch/common.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -590,24 +590,22 @@ def __init__(self, table_id=Table.OFPTT_ALL, name="",
590590
"""The constructor of TableFeatures receives the paramters below.
591591
592592
Args:
593-
table_id(int): Indetifier of table.The default value
594-
OFPTT_ALL(0xff) will apply the configuration
595-
to all tables in the switch.
596-
name(Char): Characters representing the table name.
593+
table_id(int): Indetifier of table.The default value
594+
OFPTT_ALL(0xff) will apply the configuration to all tables in
595+
the switch.
596+
name(Char): Characters representing the table name.
597597
metadata_match(int): Indicate the bits of the metadata field that
598-
the table can match on.The default value
599-
0xFFFFFFFFFFFFFFFF indicates that the table
600-
can match the full metadata field.
598+
the table can match on.The default value 0xFFFFFFFFFFFFFFFF
599+
indicates that the table can match the full metadata field.
601600
metadata_write(int): Indicates the bits of the metadata field that
602-
the table can write using the
603-
OFPIT_WRITE_METADATA instruction.The default
604-
value 0xFFFFFFFFFFFFFFFF indicates that the
605-
table can write the full metadata field.
606-
config(int): Field reseved for future use.
607-
max_entries(int): Describe the maximum number of flow entries
608-
that can be inserted into that table.
601+
the table can write using the OFPIT_WRITE_METADATA instruction.
602+
The default value 0xFFFFFFFFFFFFFFFF indicates that the table
603+
can write the full metadata field.
604+
config(int): Field reseved for future use.
605+
max_entries(int): Describe the maximum number of flow entries that
606+
can be inserted into that table.
609607
properties(~pyof.v0x04.controller2switch.common.ListOfProperty):
610-
List of Property intances.
608+
List of Property intances.
611609
"""
612610
super().__init__()
613611
self.table_id = table_id

0 commit comments

Comments
 (0)