From 51a1448b31f43e3d80af3549a4a503fa201bbe58 Mon Sep 17 00:00:00 2001 From: sanrajen Date: Tue, 26 Nov 2024 19:34:42 -0500 Subject: [PATCH] Add debug statements --- tests/snmp/test_snmp_queue_counters.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/snmp/test_snmp_queue_counters.py b/tests/snmp/test_snmp_queue_counters.py index a0a3e891922..cd296566c1c 100644 --- a/tests/snmp/test_snmp_queue_counters.py +++ b/tests/snmp/test_snmp_queue_counters.py @@ -1,5 +1,6 @@ import pytest import json +import logging from tests.common import config_reload from tests.common.helpers.assertions import pytest_assert @@ -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