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

Commit e4f89d2

Browse files
committed
Replace assings to assigns
1 parent ff709a0 commit e4f89d2

30 files changed

Lines changed: 52 additions & 52 deletions

pyof/v0x01/controller2switch/common.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SwitchConfig(GenericMessage):
7373
miss_send_len = UBInt16()
7474

7575
def __init__(self, xid=None, flags=None, miss_send_len=None):
76-
"""The constructor just assings parameters to object attributes.
76+
"""The constructor just assigns parameters to object attributes.
7777
7878
Args:
7979
xid (int): xid to be used on the message header.
@@ -96,7 +96,7 @@ class AggregateStatsReply(GenericStruct):
9696
pad = Pad(4)
9797

9898
def __init__(self, packet_count=None, byte_count=None, flow_count=None):
99-
"""The constructor just assings parameters to object attributes.
99+
"""The constructor just assigns parameters to object attributes.
100100
101101
Args:
102102
packet_count (int): Number of packets in flows
@@ -119,7 +119,7 @@ class AggregateStatsRequest(GenericStruct):
119119
out_port = UBInt16()
120120

121121
def __init__(self, match=Match(), table_id=0xff, out_port=Port.OFPP_NONE):
122-
"""The constructor just assings parameters to object attributes.
122+
"""The constructor just assigns parameters to object attributes.
123123
124124
Args:
125125
match (~pyof.v0x01.common.flow_match.Match): Fields to match.
@@ -149,7 +149,7 @@ class DescStats(GenericStruct):
149149

150150
def __init__(self, mfr_desc=None, hw_desc=None, sw_desc=None,
151151
serial_num=None, dp_desc=None):
152-
"""The constructor just assings parameters to object attributes.
152+
"""The constructor just assigns parameters to object attributes.
153153
154154
Args:
155155
mfr_desc (str): Manufacturer description
@@ -249,7 +249,7 @@ class FlowStatsRequest(GenericStruct):
249249
out_port = UBInt16()
250250

251251
def __init__(self, match=Match(), table_id=0xff, out_port=Port.OFPP_NONE):
252-
"""The constructor just assings parameters to object attributes.
252+
"""The constructor just assigns parameters to object attributes.
253253
254254
Args:
255255
match (:class:`~pyof.v0x01.common.flow_match.Match`):
@@ -340,7 +340,7 @@ class PortStatsRequest(GenericStruct):
340340
pad = Pad(6)
341341

342342
def __init__(self, port_no=None):
343-
"""The constructor just assings parameters to object attributes.
343+
"""The constructor just assigns parameters to object attributes.
344344
345345
Args:
346346
port_no (:class:`int`, :class:`~pyof.v0x01.common.phy_port.Port`):
@@ -365,7 +365,7 @@ class QueueStats(GenericStruct):
365365

366366
def __init__(self, port_no=None, queue_id=None, tx_bytes=None,
367367
tx_packets=None, tx_errors=None):
368-
"""The constructor just assings parameters to object attributes.
368+
"""The constructor just assigns parameters to object attributes.
369369
370370
Args:
371371
port_no (:class:`int`, :class:`~pyof.v0x01.common.phy_port.Port`):
@@ -392,7 +392,7 @@ class QueueStatsRequest(GenericStruct):
392392
queue_id = UBInt32()
393393

394394
def __init__(self, port_no=None, queue_id=None):
395-
"""The constructor just assings parameters to object attributes.
395+
"""The constructor just assigns parameters to object attributes.
396396
397397
Args:
398398
port_no (:class:`int`, :class:`~pyof.v0x01.common.phy_port.Port`):
@@ -420,7 +420,7 @@ class TableStats(GenericStruct):
420420
def __init__(self, table_id=None, name=None, wildcards=None,
421421
max_entries=None, active_count=None, count_lookup=None,
422422
count_matched=None):
423-
"""The constructor just assings parameters to object attributes.
423+
"""The constructor just assigns parameters to object attributes.
424424
425425
Args:
426426
table_id (int): Identifier of table. Lower numbered tables are

pyof/v0x01/controller2switch/features_reply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class SwitchFeatures(GenericMessage):
5454

5555
def __init__(self, xid=None, datapath_id=None, n_buffers=None,
5656
n_tables=None, capabilities=None, actions=None, ports=None):
57-
"""The constructor just assings parameters to object attributes.
57+
"""The constructor just assigns parameters to object attributes.
5858
5959
Args:
6060
xid (int): xid to be used on the message header.

pyof/v0x01/controller2switch/flow_mod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, xid=None, match=None, cookie=0, command=None,
6767
idle_timeout=0, hard_timeout=0, priority=0,
6868
buffer_id=NO_BUFFER, out_port=Port.OFPP_NONE,
6969
flags=FlowModFlags.OFPFF_CHECK_OVERLAP, actions=None):
70-
"""The constructor just assings parameters to object attributes.
70+
"""The constructor just assigns parameters to object attributes.
7171
7272
Args:
7373
xid (int): xid to be used on the message header.

pyof/v0x01/controller2switch/get_config_reply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GetConfigReply(SwitchConfig):
1414
"""Get Config Reply message."""
1515

1616
def __init__(self, xid=None, flags=None, miss_send_len=None):
17-
"""The constructor just assings parameters to object attributes.
17+
"""The constructor just assigns parameters to object attributes.
1818
1919
Args:
2020
xid (int): xid to be used on the message header.

pyof/v0x01/controller2switch/packet_out.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PacketOut(GenericMessage):
3030

3131
def __init__(self, xid=None, buffer_id=NO_BUFFER, in_port=Port.OFPP_NONE,
3232
actions=None, data=b''):
33-
"""The constructor just assings parameters to object attributes.
33+
"""The constructor just assigns parameters to object attributes.
3434
3535
Args:
3636
xid (int): xid of the message header.

pyof/v0x01/controller2switch/port_mod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class PortMod(GenericMessage):
2929

3030
def __init__(self, xid=None, port_no=None, hw_addr=None, config=None,
3131
mask=None, advertise=None):
32-
"""The constructor just assings parameters to object attributes.
32+
"""The constructor just assigns parameters to object attributes.
3333
3434
Args:
3535
xid (int): OpenFlow xid to the header.

pyof/v0x01/controller2switch/queue_get_config_reply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class QueueGetConfigReply(GenericMessage):
2424
queues = ListOfQueues()
2525

2626
def __init__(self, xid=None, port=None, queues=None):
27-
"""The constructor just assings parameters to object attributes.
27+
"""The constructor just assigns parameters to object attributes.
2828
2929
Args:
3030
xid (int): xid of OpenFlow header.

pyof/v0x01/controller2switch/queue_get_config_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class QueueGetConfigRequest(GenericMessage):
2222
pad = Pad(2)
2323

2424
def __init__(self, xid=None, port=None):
25-
"""The constructor just assings parameters to object attributes.
25+
"""The constructor just assigns parameters to object attributes.
2626
2727
Args:
2828
xid (int): xid of OpenFlow header

pyof/v0x01/controller2switch/set_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SetConfig(SwitchConfig):
1515
"""Set config message."""
1616

1717
def __init__(self, xid=None, flags=None, miss_send_len=None):
18-
"""The constructor just assings parameters to object attributes.
18+
"""The constructor just assigns parameters to object attributes.
1919
2020
Args:
2121
xid (int): xid to be used on the message header.

pyof/v0x01/controller2switch/stats_reply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class StatsReply(GenericMessage):
1919
body = BinaryData()
2020

2121
def __init__(self, xid=None, body_type=None, flags=None, body=b''):
22-
"""The constructor just assings parameters to object attributes.
22+
"""The constructor just assigns parameters to object attributes.
2323
2424
Args:
2525
body_type (StatsTypes): One of the OFPST_* constants.

0 commit comments

Comments
 (0)