do not extend column names if port_MGR_COLS

Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
Matthew Stidham
2021-03-19 13:30:22 -07:00
parent cf593ed4f4
commit 67fc65486e

View File

@@ -149,7 +149,8 @@ class L3CXProfile(LFCliBase):
layer3_fields = ",".join(layer3_cols)
default_cols=['Timestamp','Timestamp milliseconds epoch','Timestamp seconds epoch','Duration elapsed']
default_cols.extend(layer3_cols)
default_cols.extend(port_mgr_cols)
if port_mgr_cols is not None:
default_cols.extend(port_mgr_cols)
header_row=default_cols