|
6 | 6 | # Local source tree imports |
7 | 7 | from pyof.foundation.base import GenericBitMask, GenericMessage |
8 | 8 | from pyof.foundation.basic_types import Pad, UBInt8, UBInt16, UBInt32, UBInt64 |
| 9 | +from pyof.v0x04.common.flow_instructions import ListOfInstruction |
9 | 10 | from pyof.v0x04.common.flow_match import Match |
10 | 11 | from pyof.v0x04.common.header import Header, Type |
11 | 12 |
|
@@ -64,11 +65,12 @@ class FlowMod(GenericMessage): |
64 | 65 | flags = UBInt16(enum_ref=FlowModFlags) |
65 | 66 | pad = Pad(2) |
66 | 67 | match = Match() |
| 68 | + instructions = ListOfInstruction() |
67 | 69 |
|
68 | 70 | def __init__(self, xid=None, cookie=None, cookie_mask=None, table_id=None, |
69 | 71 | command=None, idle_timeout=None, hard_timeout=None, |
70 | 72 | priority=None, buffer_id=None, out_port=None, out_group=None, |
71 | | - flags=None, match=None): |
| 73 | + flags=None, match=None, instructions=None): |
72 | 74 | """Create a FlowMod with the optional parameters below. |
73 | 75 |
|
74 | 76 | Args: |
@@ -111,3 +113,4 @@ def __init__(self, xid=None, cookie=None, cookie_mask=None, table_id=None, |
111 | 113 | self.out_group = out_group |
112 | 114 | self.flags = flags |
113 | 115 | self.match = match |
| 116 | + self.instructions = instructions |
0 commit comments