Skip to content

Commit

Permalink
Fix the cherry-pick commit to match PR #231
Browse files Browse the repository at this point in the history
Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
  • Loading branch information
SuvarnaMeenakshi committed Feb 27, 2023
1 parent 9a7762f commit a8eef16
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sonic_ax_impl/mibs/ietf/rfc1213.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,12 @@ def update_if_counters(self):
for sai_id_key in self.if_id_map:
namespace, sai_id = mibs.split_sai_id_key(sai_id_key)
if_idx = mibs.get_index_from_str(self.if_id_map[sai_id_key])
counters_db_data = self.namespace_db_map[namespace].get_all(mibs.COUNTERS_DB,
mibs.counter_table(sai_id),
blocking=True)
counter_table = self.namespace_db_map[namespace].get_all(mibs.COUNTERS_DB, \
mibs.counter_table(sai_id))
if counter_table is None:
counter_table = {}
self.if_counters[if_idx] = {
counter: int(value) for counter, value in counters_db_data.items()
counter: int(value) for counter, value in counter_table.items()
}

def update_rif_counters(self):
Expand Down

0 comments on commit a8eef16

Please sign in to comment.