https://trex-tgn.cisco.com/youtrack/issue/trex-366
Change-Id: I8691a20c14fb55a66145c64ee1a1a3971e140a76
Signed-off-by: Yaroslav Brustinov <[email protected]>
if sync:
self.sync_streams()
- data = {}
- for id, obj in self.streams.items():
+ data = OrderedDict()
+ for id in sorted(map(int, self.streams.keys())):
+ obj = self.streams[str(id)]
# lazy build scapy repr.
if not 'pkt_type' in obj:
('next_stream', obj['next_id'] if not '-1' else 'None')
])
- return {"streams" : OrderedDict(sorted(data.items())) }
+ return {"streams" : data}
######## attributes are a complex type (dict) that might be manipulated through the async thread #############