From 2279091a9df7c9c8314cb359df216404137826d1 Mon Sep 17 00:00:00 2001 From: Miryam Schwartz Date: Wed, 4 Dec 2024 17:53:21 +0200 Subject: [PATCH] Add the collectx versions to the to the PFD --- .../log_analyzers/ibdiagnet2_port_counters_analyzer.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ibdiagnet2_port_counters_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ibdiagnet2_port_counters_analyzer.py index a809e4a0..826a9c74 100644 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ibdiagnet2_port_counters_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzers/ibdiagnet2_port_counters_analyzer.py @@ -40,6 +40,7 @@ def __init__( self.save_first_last_iteration_timestamp, self.save_number_of_switches_and_ports, self.save_number_of_core_dumps, + self.save_collectx_versions } # Based on the log path, decided if this is primary or secondary if "ufm_logs" in logs_csvs[0]: @@ -52,11 +53,16 @@ def __init__( self._first_timestamp_of_logs = None self._last_timestamp_of_logs = None - def get_collectx_versions(self): + def save_collectx_versions(self): unique_collectx_versions = self._log_data_sorted[ self._log_data_sorted["type"] == "collectx_version" ]["data"].unique() - return unique_collectx_versions + self._dataframes_for_pdf.append( + ( + f"{self.telemetry_type} telemetry collectx versions", + unique_collectx_versions, + ) + ) def save_number_of_switches_and_ports(self): """