Skip to content

Commit 0f772ce

Browse files
[ciscoSwitchQosMIB]: Remove invocation of update_data function during (sonic-net#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 <[email protected]>
1 parent 51b09a8 commit 0f772ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py

-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ def reinit_data(self):
8787
for db_conn in Namespace.get_non_host_dbs(self.db_conn):
8888
self.queue_type_map[db_conn.namespace] = db_conn.get_all(mibs.COUNTERS_DB, "COUNTERS_QUEUE_TYPE_MAP", blocking=False)
8989

90-
self.update_data()
91-
9290
def update_data(self):
9391
"""
9492
Update redis (caches config)

0 commit comments

Comments
 (0)