diff options
author | Dan Klein <danklei@cisco.com> | 2015-10-20 05:39:14 +0300 |
---|---|---|
committer | Dan Klein <danklei@cisco.com> | 2015-10-20 05:39:14 +0300 |
commit | cf753587ffb7b89cff1863c74ca334b8c41fd0c0 (patch) | |
tree | f9d8bd9e67cb93306e93041f11f5e4124a6e151a /scripts/automation/trex_control_plane/common | |
parent | d09df99769f67819c64a7a025dbdcd39811c7b44 (diff) | |
parent | 51ad078182d17b42a36c239c3c21381eeb3eec85 (diff) |
Merge branch 'master' into master-demo +
working demo of loading a YAML, and attaching it to server
Diffstat (limited to 'scripts/automation/trex_control_plane/common')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/trex_streams.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/common/trex_streams.py b/scripts/automation/trex_control_plane/common/trex_streams.py index 674a6bcc..1aeb46b0 100755 --- a/scripts/automation/trex_control_plane/common/trex_streams.py +++ b/scripts/automation/trex_control_plane/common/trex_streams.py @@ -105,9 +105,8 @@ class CRxStats(object): if self.enabled: dump = {"enabled": True} dump.update({k: getattr(self, k) - for k in CRxStats.FIELDS - if getattr(self, k) or k == "stream_id" - }) + for k in CRxStats.FIELDS} + ) return dump else: return {"enabled": False} |