summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client_utils/text_tables.py
diff options
context:
space:
mode:
authorDan Klein <danklein10@gmail.com>2016-01-08 13:54:36 +0200
committerDan Klein <danklein10@gmail.com>2016-01-08 13:54:36 +0200
commit8e037c2bd51844dc7c42ce7b2339806d9dcb964b (patch)
treecd45e5214e3db13f214a0e68b3fd37f366438b80 /scripts/automation/trex_control_plane/client_utils/text_tables.py
parent8db09096b9dcf030b7dc744fbd7ee463d8e6fd1b (diff)
parent9fc980b8aa43cf53446eeeb5184f10a86476da28 (diff)
Merge branch 'dan_stateless'
Added the support for "streams" command Missing: 1. "--full" output 2. sync with server after crash 3. merging output for identical port streams
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils/text_tables.py')
-rw-r--r--scripts/automation/trex_control_plane/client_utils/text_tables.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/client_utils/text_tables.py b/scripts/automation/trex_control_plane/client_utils/text_tables.py
index 2debca38..2fa17f09 100644
--- a/scripts/automation/trex_control_plane/client_utils/text_tables.py
+++ b/scripts/automation/trex_control_plane/client_utils/text_tables.py
@@ -22,12 +22,11 @@ class TRexTextInfo(Texttable):
def generate_trex_stats_table():
pass
-def print_table_with_header(texttable_obj, header=""):
- header = header.replace("_", " ").title()
+def print_table_with_header(texttable_obj, header="", untouched_header=""):
+ header = header.replace("_", " ").title() + untouched_header
print format_text(header, 'cyan', 'underline') + "\n"
print texttable_obj.draw() + "\n"
- pass
if __name__ == "__main__":
pass