Skip to content

Commit

Permalink
Updated comment and better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-wong-ce committed Sep 5, 2024
1 parent bf9207b commit 664cd6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def update_stats(self):
queue_sai_oid = self.port_queues_map[mibs.queue_key(if_index, queue)]
if self.queue_type_map[namespace].get(queue_sai_oid) == 'SAI_QUEUE_TYPE_UNICAST':
pq_count = pq_count + 1
# If there are fewer unicast queues than multicast queues we use the old assumption of second half mcast

# If there are fewer unicast queues than half of max queues, we use the old assumption of second half mcast
# To simulate vendor OID, we wrap queues by max priority groups
port_max_queues = Namespace.dbs_get_all(self.db_conn, mibs.STATE_DB,
mibs.buffer_max_parm_table(self.oid_name_map[if_index]))['max_queues']
Expand Down

0 comments on commit 664cd6b

Please sign in to comment.