@@ -112,11 +112,11 @@ class InstructionApplyAction(Instruction):
112112 actions = ListOfActions ()
113113
114114 def __init__ (self , actions = None ):
115- """Instruction structure for OFPIT_APPLY_ACTIONS .
115+ """The constructor just assigns parameters to object attributes .
116116
117117 Args:
118- - actions (:class:`~.actions.ListOfActions`): Actions associated
119- with OFPIT_APPLY_ACTIONS.
118+ actions (:class:`~.actions.ListOfActions`):
119+ Actions associated with OFPIT_APPLY_ACTIONS.
120120 """
121121 super ().__init__ (InstructionType .OFPIT_APPLY_ACTIONS )
122122 self .actions = actions if actions else []
@@ -135,11 +135,11 @@ class InstructionClearAction(Instruction):
135135 actions = ListOfActions ()
136136
137137 def __init__ (self , actions = None ):
138- """Instruction structure for OFPIT_CLEAR_ACTIONS .
138+ """The constructor just assigns parameters to object attributes .
139139
140140 Args:
141- - actions (:class:`~.actions.ListOfActions`): Actions associated
142- with OFPIT_CLEAR_ACTIONS.
141+ actions (:class:`~.actions.ListOfActions`):
142+ Actions associated with OFPIT_CLEAR_ACTIONS.
143143 """
144144 super ().__init__ (InstructionType .OFPIT_CLEAR_ACTIONS )
145145 self .actions = actions if actions else []
@@ -155,11 +155,11 @@ class InstructionGotoTable(Instruction):
155155 pad = Pad (3 )
156156
157157 def __init__ (self , table_id = Meter .OFPM_ALL ):
158- """Instruction structure for OFPIT_GOTO_TABLE .
158+ """The constructor just assigns parameters to object attributes .
159159
160160 Args:
161- - length (int): Length of this struct in bytes.
162- - table_id (int): set next table in the lookup pipeline.
161+ length (int): Length of this struct in bytes.
162+ table_id (int): set next table in the lookup pipeline.
163163 """
164164 super ().__init__ (InstructionType .OFPIT_GOTO_TABLE )
165165 self .table_id = table_id
@@ -176,10 +176,10 @@ class InstructionMeter(Instruction):
176176 meter_id = UBInt32 ()
177177
178178 def __init__ (self , meter_id = Meter .OFPM_ALL ):
179- """Instruction structure for OFPIT_METER .
179+ """The constructor just assigns parameters to object attributes .
180180
181181 Args:
182- - meter_id (int): Meter instance.
182+ meter_id (int): Meter instance.
183183 """
184184 super ().__init__ (InstructionType .OFPIT_METER )
185185 self .meter_id = meter_id
@@ -198,11 +198,11 @@ class InstructionWriteAction(Instruction):
198198 actions = ListOfActions ()
199199
200200 def __init__ (self , actions = None ):
201- """Instruction structure for OFPIT_WRITE_ACTIONS .
201+ """The constructor just assigns parameters to object attributes .
202202
203203 Args:
204- - actions (:class:`~.actions.ListOfActions`): Actions associated
205- with OFPIT_WRITE_ACTIONS.
204+ actions (:class:`~.actions.ListOfActions`):
205+ Actions associated with OFPIT_WRITE_ACTIONS.
206206 """
207207 super ().__init__ (InstructionType .OFPIT_WRITE_ACTIONS )
208208 self .actions = actions if actions else []
@@ -220,11 +220,11 @@ class InstructionWriteMetadata(Instruction):
220220 metadata_mask = UBInt64 ()
221221
222222 def __init__ (self , metadata = 0 , metadata_mask = 0 ):
223- """Instruction structure for OFPIT_WRITE_METADATA .
223+ """The constructor just assigns parameters to object attributes .
224224
225225 Args:
226- - metadata (int): Metadata value to write.
227- - metadata_mask (int): Metadata write bitmask.
226+ metadata (int): Metadata value to write.
227+ metadata_mask (int): Metadata write bitmask.
228228 """
229229 super ().__init__ (InstructionType .OFPIT_WRITE_METADATA )
230230 self .metadata = metadata
@@ -242,6 +242,7 @@ def __init__(self, items=None):
242242 """The constructor just assigns parameters to object attributes.
243243
244244 Args:
245- items (Instruction): Instance or a list of instances.
245+ items (:class:`~pyof.v0x04.common.flow_instructions.Instruction`):
246+ Instance or a list of instances.
246247 """
247248 super ().__init__ (pyof_class = Instruction , items = items )
0 commit comments