Skip to content

Commit

Permalink
[ciscoSwitchQosMIB]: Remove invocation of update_data function during (
Browse files Browse the repository at this point in the history
…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 <sumeenak@microsoft.com>
  • Loading branch information
SuvarnaMeenakshi committed Sep 28, 2020
1 parent 51b09a8 commit 0f772ce
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f772ce

Please sign in to comment.