Skip to content

Commit

Permalink
Add debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjair-git committed Nov 27, 2024
1 parent f01d1f5 commit 51a1448
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/snmp/test_snmp_queue_counters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
import json
import logging
from tests.common import config_reload
from tests.common.helpers.assertions import pytest_assert

Expand Down Expand Up @@ -108,6 +109,12 @@ def test_snmp_queue_counters(duthosts,
# Exclude queues of other asic if any
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:
logging.info("Asic namespace {}".format(asic.namespace))
logging.info("Asic namespace type {}".format(type(asic.namespace)))
logging.info("Queue split one {}".format(queue.split('|')[-1]))
logging.info("Queue split one type {}".format(type(queue.split('|')[-1])))
logging.info("Queue split two {}".format(queue.split('|')[-2]))
logging.info("Queue split two type {}".format(type(queue.split('|')[-2])))
if asic.namespace in queue and queue.split('|')[-1] == '3-4' and queue.split('|')[-2] == interface:
buffer_queue_to_del = queue
break
Expand Down

0 comments on commit 51a1448

Please sign in to comment.