Skip to content

Commit

Permalink
snmp-queue: exclude internal buffer queues if present
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjair-git committed Nov 26, 2024
1 parent 55ca026 commit 2a720af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/snmp/test_snmp_queue_counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ def test_snmp_queue_counters(duthosts,
data = json.loads(duthost.shell("cat {}".format(ORIG_CFG_DB),
verbose=False)['stdout'])
buffer_queue_to_del = None
int_inf = ['IB', 'BP', 'Rec']
# Get appropriate buffer queue value to delete in case of multi-asic
if duthost.sonichost.is_multi_asic:
buffer_queues = list(data['BUFFER_QUEUE'].keys())
buffer_queues = [q for q in buffer_queues if all(val not in q for val in int_inf)]
iface_to_check = buffer_queues[0].split('|')[0]
iface_buffer_queues = [bq for bq in buffer_queues if any(val in iface_to_check for val in bq.split('|'))]
for queue in iface_buffer_queues:
Expand Down

0 comments on commit 2a720af

Please sign in to comment.