diff options
author | 2015-10-26 09:41:51 +0200 | |
---|---|---|
committer | 2015-10-26 09:41:51 +0200 | |
commit | b44239e4c6019f10fa7cf4fe0fef8c3726435033 (patch) | |
tree | c8ddb8a426768372b9e03f7b6506f5a52f846e8c /scripts/automation | |
parent | de90762476583bed8c3a2c1e15158b85e4231ad0 (diff) |
add disconnect functionality
Diffstat (limited to 'scripts/automation')
-rwxr-xr-x | scripts/automation/trex_control_plane/client/trex_stateless_client.py | 3 | ||||
-rwxr-xr-x | scripts/automation/trex_control_plane/common/trex_streams.py | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_stateless_client.py b/scripts/automation/trex_control_plane/client/trex_stateless_client.py index 8856a793..b976db66 100755 --- a/scripts/automation/trex_control_plane/client/trex_stateless_client.py +++ b/scripts/automation/trex_control_plane/client/trex_stateless_client.py @@ -66,6 +66,9 @@ class CTRexStatelessClient(object): def connect(self): self.comm_link.connect() + def disconnect(self): + self.comm_link.disconnect() + def ping(self): return self.transmit("ping") diff --git a/scripts/automation/trex_control_plane/common/trex_streams.py b/scripts/automation/trex_control_plane/common/trex_streams.py index efa8e5cc..750da198 100755 --- a/scripts/automation/trex_control_plane/common/trex_streams.py +++ b/scripts/automation/trex_control_plane/common/trex_streams.py @@ -227,8 +227,7 @@ class CStream(object): return - def dump(self, compilation=False): - # fields = CStream.COMPILE_FIELDS if compilation else CStream.FIELDS + def dump(self): if self.is_loaded: dump = {} for key in CStream.FIELDS: @@ -240,10 +239,6 @@ class CStream(object): else: raise RuntimeError("CStream object isn't loaded with data. Use 'load_data' method.") - def dump_compiled(self): - return self.dump(compilation=True) - - if __name__ == "__main__": pass |