|
4 | 4 | from enum import Enum |
5 | 5 |
|
6 | 6 | from pyof.foundation.base import GenericMessage, GenericStruct |
7 | | -from pyof.foundation.basic_types import (Char, FixedTypeList, Pad, UBInt8, |
8 | | - UBInt16, UBInt32, UBInt64) |
| 7 | +from pyof.foundation.basic_types import (Char, Pad, UBInt8, UBInt16, UBInt32, |
| 8 | + UBInt64) |
9 | 9 | from pyof.foundation.constants import (DESC_STR_LEN, OFP_MAX_TABLE_NAME_LEN, |
10 | 10 | SERIAL_NUM_LEN) |
11 | 11 | # Local source tree imports |
12 | | -from pyof.v0x01.common.action import ActionHeader |
| 12 | +from pyof.v0x01.common.action import ListOfActions |
13 | 13 | from pyof.v0x01.common.flow_match import FlowWildCards, Match |
14 | 14 | from pyof.v0x01.common.header import Header |
15 | 15 | from pyof.v0x01.common.phy_port import Port |
@@ -86,21 +86,6 @@ def __init__(self, xid=None, flags=None, miss_send_len=None): |
86 | 86 | self.miss_send_len = miss_send_len |
87 | 87 |
|
88 | 88 |
|
89 | | -class ListOfActions(FixedTypeList): |
90 | | - """List of actions. |
91 | | -
|
92 | | - Represented by instances of ActionHeader and used on ActionHeader objects. |
93 | | - """ |
94 | | - |
95 | | - def __init__(self, items=None): |
96 | | - """The constructor just assings parameters to object attributes. |
97 | | -
|
98 | | - Args: |
99 | | - items (ActionHeader): Instance or a list of instances. |
100 | | - """ |
101 | | - super().__init__(pyof_class=ActionHeader, items=items) |
102 | | - |
103 | | - |
104 | 89 | class AggregateStatsReply(GenericStruct): |
105 | 90 | """Body of reply to OFPST_AGGREGATE request.""" |
106 | 91 |
|
|
0 commit comments