diff options
author | imarom <imarom@cisco.com> | 2016-02-15 03:12:29 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-15 07:11:26 -0500 |
commit | ec369cd722a400130b9b754c2c965ec60beb9d56 (patch) | |
tree | 0b6f3bcaaa957983fd148548f09bd1ae4b900cfd /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py | |
parent | 1f60016f591ebd2e260e501c8c5da10c11d0c7ad (diff) |
many bugs uncovered by the PCAP injection:
1. NamedTuple constructor
2. Scappy
3. zlib for server
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py index d387ac9c..0a6e64fb 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_types.py @@ -4,6 +4,7 @@ from utils.text_opts import * from trex_stl_exceptions import * RpcCmdData = namedtuple('RpcCmdData', ['method', 'params']) +TupleRC = namedtuple('RC', ['rc', 'data', 'is_warn']) class RpcResponseStatus(namedtuple('RpcResponseStatus', ['success', 'id', 'msg'])): __slots__ = () @@ -19,8 +20,7 @@ class RC(): self.rc_list = [] if (rc != None): - tuple_rc = namedtuple('RC', ['rc', 'data', 'is_warn']) - self.rc_list.append(tuple_rc(rc, data, is_warn)) + self.rc_list.append(TupleRC(rc, data, is_warn)) def __nonzero__ (self): return self.good() |