From 111bd3664b91279883d9f8e2483e436cbdcf3d38 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Fri, 28 Oct 2016 14:32:05 +0200 Subject: move port_attr from driver class to physical port class + small fixes according to code review Signed-off-by: Yaroslav Brustinov --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py index 915eabb2..875ad24e 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_stats.py @@ -539,8 +539,7 @@ class CTRexInfoGenerator(object): stats_table.set_cols_dtype(['t'] * (len(relevant_ports) + 1)) for key, arr in xstats_data.items(): if include_zero_lines or list(filter(None, arr)): - if len(key) > 28: - key = key[:28] + key = key[:28] stats_table.add_row([key] + arr) return {'xstats:': ExportableStats(None, stats_table)} -- cgit 1.2.3-korg