From 0f772ceb2759ffdca1d507aa1830832e74f4f77a Mon Sep 17 00:00:00 2001 From: SuvarnaMeenakshi <50386592+SuvarnaMeenakshi@users.noreply.github.com> Date: Mon, 28 Sep 2020 09:25:48 -0700 Subject: [PATCH] [ciscoSwitchQosMIB]: Remove invocation of update_data function during (#161) reinit_data. udpate_data and reinit_data will be invoked by periodic events. update_data need not be invoked by reinit_data again. Additional invocation of update_data can cause increase in running time on multi-asic platform causing Agentx socket connection to break. Signed-off-by: SuvarnaMeenakshi --- src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py b/src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py index 5c54d4fc17ff..e113b02057d7 100644 --- a/src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py +++ b/src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py @@ -87,8 +87,6 @@ def reinit_data(self): for db_conn in Namespace.get_non_host_dbs(self.db_conn): self.queue_type_map[db_conn.namespace] = db_conn.get_all(mibs.COUNTERS_DB, "COUNTERS_QUEUE_TYPE_MAP", blocking=False) - self.update_data() - def update_data(self): """ Update redis (caches config)