diff --git a/scripts/queuestat b/scripts/queuestat index bb6539bbb8..96a24b51a3 100755 --- a/scripts/queuestat +++ b/scripts/queuestat @@ -15,6 +15,7 @@ import sys from collections import namedtuple, OrderedDict from natsort import natsorted from tabulate import tabulate +from sonic_py_common import multi_asic # mock the redis for unit test purposes # try: @@ -24,12 +25,17 @@ try: sys.path.insert(0, modules_path) sys.path.insert(0, tests_path) import mock_tables.dbconnector # lgtm [py/unused-import] + if os.environ["UTILITIES_UNIT_TESTING_TOPOLOGY"] == "multi_asic": + import mock_tables.mock_multi_asic + mock_tables.dbconnector.load_namespace_config() except KeyError: pass from swsscommon.swsscommon import SonicV2Connector from utilities_common.cli import UserCache +from utilities_common import constants +import utilities_common.multi_asic as multi_asic_util QueueStats = namedtuple("QueueStats", "queueindex, queuetype, totalpacket, totalbytes, droppacket, dropbytes") header = ['Port', 'TxQ', 'Counter/pkts', 'Counter/bytes', 'Drop/pkts', 'Drop/bytes'] @@ -85,9 +91,15 @@ def build_json(port, cnstat): class Queuestat(object): - def __init__(self, voq=False): - self.db = SonicV2Connector(use_unix_socket_path=False) - self.db.connect(self.db.COUNTERS_DB) + def __init__(self, namespace, voq=False): + self.db = None + self.multi_asic = multi_asic_util.MultiAsic(constants.DISPLAY_ALL, namespace) + if namespace is not None: + for ns in self.multi_asic.get_ns_list_based_on_options(): + self.db = multi_asic.connect_to_all_dbs_for_ns(ns) + else: + self.db = SonicV2Connector(use_unix_socket_path=False) + self.db.connect(self.db.COUNTERS_DB) self.voq = voq def get_queue_port(table_id): @@ -345,12 +357,14 @@ Examples: parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.0') parser.add_argument('-j', '--json_opt', action='store_true', help='Print in JSON format') parser.add_argument('-V', '--voq', action='store_true', help='display voq stats') + parser.add_argument('-n','--namespace', default=None, help='Display queue counters for specific namespace') args = parser.parse_args() save_fresh_stats = args.clear delete_stats = args.delete voq = args.voq json_opt = args.json_opt + namespace = args.namespace port_to_show_stats = args.port @@ -362,7 +376,7 @@ Examples: if delete_stats: cache.remove() - queuestat = Queuestat( voq ) + queuestat = Queuestat( namespace, voq ) if save_fresh_stats: queuestat.save_fresh_stats() diff --git a/show/main.py b/show/main.py index 091b2d1a36..0c9fd46703 100755 --- a/show/main.py +++ b/show/main.py @@ -704,10 +704,11 @@ def queue(): # 'counters' subcommand ("show queue counters") @queue.command() @click.argument('interfacename', required=False) +@multi_asic_util.multi_asic_click_options @click.option('--verbose', is_flag=True, help="Enable verbose output") @click.option('--json', is_flag=True, help="JSON output") @click.option('--voq', is_flag=True, help="VOQ counters") -def counters(interfacename, verbose, json, voq): +def counters(interfacename, namespace, display, verbose, json, voq): """Show queue counters""" cmd = "queuestat" @@ -719,6 +720,9 @@ def counters(interfacename, verbose, json, voq): if interfacename is not None: cmd += " -p {}".format(interfacename) + if namespace is not None: + cmd += " -n {}".format(namespace) + if json: cmd += " -j" diff --git a/tests/mock_tables/asic0/counters_db.json b/tests/mock_tables/asic0/counters_db.json index 2e26810929..53e3b558a2 100644 --- a/tests/mock_tables/asic0/counters_db.json +++ b/tests/mock_tables/asic0/counters_db.json @@ -77,7 +77,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "499", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "2", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "7886", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "13" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "13", + "SAI_QUEUE_STAT_BYTES": "30", + "SAI_QUEUE_STAT_DROPPED_BYTES": "74", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "56", + "SAI_QUEUE_STAT_PACKETS": "68", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "61" }, "COUNTERS:oid:0x1000000001001": { @@ -98,7 +103,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "226", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "5", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8318", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "92" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "92", + "SAI_QUEUE_STAT_BYTES": "31", + "SAI_QUEUE_STAT_DROPPED_BYTES": "73", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "55", + "SAI_QUEUE_STAT_PACKETS": "69", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "62" }, "COUNTERS:oid:0x1000000001002": { @@ -119,7 +129,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "999", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "0", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9885", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "99" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "99", + "SAI_QUEUE_STAT_BYTES": "32", + "SAI_QUEUE_STAT_DROPPED_BYTES": "72", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "54", + "SAI_QUEUE_STAT_PACKETS": "70", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "63" }, "COUNTERS:oid:0x1000000001003": { @@ -140,7 +155,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "470", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "5", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9734", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "35" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "35", + "SAI_QUEUE_STAT_BYTES": "33", + "SAI_QUEUE_STAT_DROPPED_BYTES": "71", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "53", + "SAI_QUEUE_STAT_PACKETS": "71", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "64" }, "COUNTERS:oid:0x1000000001004": { @@ -161,7 +181,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "880", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "1", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8957", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "10" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "10", + "SAI_QUEUE_STAT_BYTES": "34", + "SAI_QUEUE_STAT_DROPPED_BYTES": "70", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "52", + "SAI_QUEUE_STAT_PACKETS": "72", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "65" }, "COUNTERS:oid:0x1000000001005": { @@ -182,7 +207,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "633", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9538", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "54" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "54", + "SAI_QUEUE_STAT_BYTES": "35", + "SAI_QUEUE_STAT_DROPPED_BYTES": "69", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "51", + "SAI_QUEUE_STAT_PACKETS": "73", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "66" }, "COUNTERS:oid:0x1000000001006": { @@ -203,7 +233,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "934", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "6", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1060", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "53" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "53", + "SAI_QUEUE_STAT_BYTES": "36", + "SAI_QUEUE_STAT_DROPPED_BYTES": "68", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "50", + "SAI_QUEUE_STAT_PACKETS": "74", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "67" }, "COUNTERS:oid:0x1000000001007": { @@ -224,7 +259,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "216", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4283", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "0" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "0", + "SAI_QUEUE_STAT_BYTES": "37", + "SAI_QUEUE_STAT_DROPPED_BYTES": "67", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "49", + "SAI_QUEUE_STAT_PACKETS": "75", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "68" }, "COUNTERS:oid:0x1000000001008": { @@ -245,7 +285,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "235", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "6", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "3256", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "22" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "22", + "SAI_QUEUE_STAT_BYTES": "38", + "SAI_QUEUE_STAT_DROPPED_BYTES": "66", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "48", + "SAI_QUEUE_STAT_PACKETS": "76", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "67" }, "COUNTERS:oid:0x1000000001009": { @@ -266,7 +311,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "172", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "9", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8458", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "35" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "35", + "SAI_QUEUE_STAT_BYTES": "39", + "SAI_QUEUE_STAT_DROPPED_BYTES": "65", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "47", + "SAI_QUEUE_STAT_PACKETS": "77", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "68" }, "COUNTERS:oid:0x1000000001010": { @@ -287,7 +337,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "360", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "1", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1394", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "13" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "13", + "SAI_QUEUE_STAT_BYTES": "40", + "SAI_QUEUE_STAT_DROPPED_BYTES": "64", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "46", + "SAI_QUEUE_STAT_PACKETS": "78", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "69" }, "COUNTERS:oid:0x1000000001011": { @@ -308,7 +363,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "777", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8694", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "34" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "34", + "SAI_QUEUE_STAT_BYTES": "41", + "SAI_QUEUE_STAT_DROPPED_BYTES": "63", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "45", + "SAI_QUEUE_STAT_PACKETS": "79", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "70" }, "COUNTERS:oid:0x1000000001012": { @@ -329,7 +389,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "444", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "6390", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "11" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "11", + "SAI_QUEUE_STAT_BYTES": "42", + "SAI_QUEUE_STAT_DROPPED_BYTES": "62", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "44", + "SAI_QUEUE_STAT_PACKETS": "80", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "71" }, "COUNTERS:oid:0x1000000001013": { @@ -350,7 +415,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "496", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "5", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "3181", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "96" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "96", + "SAI_QUEUE_STAT_BYTES": "43", + "SAI_QUEUE_STAT_DROPPED_BYTES": "61", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "43", + "SAI_QUEUE_STAT_PACKETS": "81", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "72" }, "COUNTERS:oid:0x1000000001014": { @@ -371,7 +441,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "126", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "1", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "487", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "69" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "69", + "SAI_QUEUE_STAT_BYTES": "44", + "SAI_QUEUE_STAT_DROPPED_BYTES": "60", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "42", + "SAI_QUEUE_STAT_PACKETS": "82", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "73" }, "COUNTERS:oid:0x1000000001015": { @@ -392,7 +467,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "347", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "6", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "2844", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "88" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "88", + "SAI_QUEUE_STAT_BYTES": "45", + "SAI_QUEUE_STAT_DROPPED_BYTES": "59", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "41", + "SAI_QUEUE_STAT_PACKETS": "83", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "74" }, "COUNTERS:oid:0x1000000002000": { @@ -413,7 +493,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "997", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "3", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4406", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "93" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "93", + "SAI_QUEUE_STAT_BYTES": "46", + "SAI_QUEUE_STAT_DROPPED_BYTES": "58", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "40", + "SAI_QUEUE_STAT_PACKETS": "84", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "75" }, "COUNTERS:oid:0x1000000002001": { @@ -434,7 +519,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "560", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4320", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "95" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "95", + "SAI_QUEUE_STAT_BYTES": "47", + "SAI_QUEUE_STAT_DROPPED_BYTES": "57", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "39", + "SAI_QUEUE_STAT_PACKETS": "85", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "76" }, "COUNTERS:oid:0x1000000002002": { @@ -455,7 +545,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "196", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "2", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "150", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "56" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "56", + "SAI_QUEUE_STAT_BYTES": "48", + "SAI_QUEUE_STAT_DROPPED_BYTES": "56", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "38", + "SAI_QUEUE_STAT_PACKETS": "86", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "77" }, "COUNTERS:oid:0x1000000002003": { @@ -476,7 +571,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "515", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "3", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "5525", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "57" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "57", + "SAI_QUEUE_STAT_BYTES": "49", + "SAI_QUEUE_STAT_DROPPED_BYTES": "55", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "37", + "SAI_QUEUE_STAT_PACKETS": "87", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "78" }, "COUNTERS:oid:0x1000000002004": { @@ -497,7 +597,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "995", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "6", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9133", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "46" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "46", + "SAI_QUEUE_STAT_BYTES": "50", + "SAI_QUEUE_STAT_DROPPED_BYTES": "54", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "36", + "SAI_QUEUE_STAT_PACKETS": "88", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "79" }, "COUNTERS:oid:0x1000000002005": { @@ -518,7 +623,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "30", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1972", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "4" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "4", + "SAI_QUEUE_STAT_BYTES": "51", + "SAI_QUEUE_STAT_DROPPED_BYTES": "53", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "35", + "SAI_QUEUE_STAT_PACKETS": "89", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "80" }, "COUNTERS:oid:0x1000000002006": { @@ -539,7 +649,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "908", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "3", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "6804", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "10" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "10", + "SAI_QUEUE_STAT_BYTES": "52", + "SAI_QUEUE_STAT_DROPPED_BYTES": "52", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "34", + "SAI_QUEUE_STAT_PACKETS": "90", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "81" }, "COUNTERS:oid:0x1000000002007": { @@ -560,7 +675,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "875", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "0", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "2979", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "48" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "48", + "SAI_QUEUE_STAT_BYTES": "53", + "SAI_QUEUE_STAT_DROPPED_BYTES": "51", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "33", + "SAI_QUEUE_STAT_PACKETS": "91", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "82" }, "COUNTERS:oid:0x1000000002008": { @@ -581,7 +701,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "67", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "2", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4005", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "8" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "8", + "SAI_QUEUE_STAT_BYTES": "54", + "SAI_QUEUE_STAT_DROPPED_BYTES": "50", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "32", + "SAI_QUEUE_STAT_PACKETS": "92", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "83" }, "COUNTERS:oid:0x1000000002009": { @@ -602,7 +727,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "226", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1732", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "86" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "86", + "SAI_QUEUE_STAT_BYTES": "55", + "SAI_QUEUE_STAT_DROPPED_BYTES": "49", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "31", + "SAI_QUEUE_STAT_PACKETS": "93", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "84" }, "COUNTERS:oid:0x1000000002010": { @@ -623,7 +753,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "567", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "5", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9822", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "32" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "32", + "SAI_QUEUE_STAT_BYTES": "56", + "SAI_QUEUE_STAT_DROPPED_BYTES": "48", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "30", + "SAI_QUEUE_STAT_PACKETS": "94", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "85" }, "COUNTERS:oid:0x1000000002011": { @@ -644,7 +779,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "527", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "2772", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "1" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "1", + "SAI_QUEUE_STAT_BYTES": "57", + "SAI_QUEUE_STAT_DROPPED_BYTES": "47", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "29", + "SAI_QUEUE_STAT_PACKETS": "95", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "86" }, "COUNTERS:oid:0x1000000002012": { @@ -665,7 +805,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "537", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4423", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "30" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "30", + "SAI_QUEUE_STAT_BYTES": "58", + "SAI_QUEUE_STAT_DROPPED_BYTES": "46", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "28", + "SAI_QUEUE_STAT_PACKETS": "96", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "87" }, "COUNTERS:oid:0x1000000002013": { @@ -686,7 +831,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "364", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "3", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "6280", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "94" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "94", + "SAI_QUEUE_STAT_BYTES": "59", + "SAI_QUEUE_STAT_DROPPED_BYTES": "45", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "27", + "SAI_QUEUE_STAT_PACKETS": "97", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "88" }, "COUNTERS:oid:0x1000000002014": { @@ -707,7 +857,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "69", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "5812", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "39" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "39", + "SAI_QUEUE_STAT_BYTES": "60", + "SAI_QUEUE_STAT_DROPPED_BYTES": "44", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "26", + "SAI_QUEUE_STAT_PACKETS": "98", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "89" }, "COUNTERS:oid:0x1000000002015": { @@ -728,7 +883,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "115", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "7589", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "9" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "9", + "SAI_QUEUE_STAT_BYTES": "61", + "SAI_QUEUE_STAT_DROPPED_BYTES": "43", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "25", + "SAI_QUEUE_STAT_PACKETS": "99", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "90" }, "COUNTERS:oid:0x1000000003000": { @@ -749,7 +909,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "719", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "9", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "7806", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "73" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "73", + "SAI_QUEUE_STAT_BYTES": "62", + "SAI_QUEUE_STAT_DROPPED_BYTES": "42", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "24", + "SAI_QUEUE_STAT_PACKETS": "100", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "91" }, "COUNTERS:oid:0x1000000003001": { @@ -770,7 +935,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "737", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "6904", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "71" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "71", + "SAI_QUEUE_STAT_BYTES": "63", + "SAI_QUEUE_STAT_DROPPED_BYTES": "41", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "23", + "SAI_QUEUE_STAT_PACKETS": "101", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "92" }, "COUNTERS:oid:0x1000000003002": { @@ -791,7 +961,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "946", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "9", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "7498", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "13" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "13", + "SAI_QUEUE_STAT_BYTES": "64", + "SAI_QUEUE_STAT_DROPPED_BYTES": "40", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "22", + "SAI_QUEUE_STAT_PACKETS": "102", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "93" }, "COUNTERS:oid:0x1000000003003": { @@ -812,7 +987,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "5", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "0", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1876", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "43" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "43", + "SAI_QUEUE_STAT_BYTES": "65", + "SAI_QUEUE_STAT_DROPPED_BYTES": "39", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "21", + "SAI_QUEUE_STAT_PACKETS": "103", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "94" }, "COUNTERS:oid:0x1000000003004": { @@ -833,7 +1013,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "648", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1599", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "78" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "78", + "SAI_QUEUE_STAT_BYTES": "66", + "SAI_QUEUE_STAT_DROPPED_BYTES": "38", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "20", + "SAI_QUEUE_STAT_PACKETS": "104", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "95" }, "COUNTERS:oid:0x1000000003005": { @@ -854,7 +1039,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "127", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "2939", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "48" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "48", + "SAI_QUEUE_STAT_BYTES": "67", + "SAI_QUEUE_STAT_DROPPED_BYTES": "37", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "19", + "SAI_QUEUE_STAT_PACKETS": "105", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "96" }, "COUNTERS:oid:0x1000000003006": { @@ -875,7 +1065,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "940", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "0", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "3828", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "20" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "20", + "SAI_QUEUE_STAT_BYTES": "68", + "SAI_QUEUE_STAT_DROPPED_BYTES": "36", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "18", + "SAI_QUEUE_STAT_PACKETS": "106", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "97" }, "COUNTERS:oid:0x1000000003007": { @@ -896,7 +1091,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "685", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "9", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9058", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "54" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "54", + "SAI_QUEUE_STAT_BYTES": "69", + "SAI_QUEUE_STAT_DROPPED_BYTES": "35", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "17", + "SAI_QUEUE_STAT_PACKETS": "107", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "98" }, "COUNTERS:oid:0x1000000003008": { @@ -917,7 +1117,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "181", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4963", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "85" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "85", + "SAI_QUEUE_STAT_BYTES": "70", + "SAI_QUEUE_STAT_DROPPED_BYTES": "34", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "16", + "SAI_QUEUE_STAT_PACKETS": "108", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "99" }, "COUNTERS:oid:0x1000000003009": { @@ -938,7 +1143,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "359", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "5498", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "36" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "36", + "SAI_QUEUE_STAT_BYTES": "71", + "SAI_QUEUE_STAT_DROPPED_BYTES": "33", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "15", + "SAI_QUEUE_STAT_PACKETS": "109", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "100" }, "COUNTERS:oid:0x1000000003010": { @@ -959,7 +1169,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "902", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "0", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8748", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "26" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "26", + "SAI_QUEUE_STAT_BYTES": "72", + "SAI_QUEUE_STAT_DROPPED_BYTES": "32", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "14", + "SAI_QUEUE_STAT_PACKETS": "110", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "101" }, "COUNTERS:oid:0x1000000003011": { @@ -980,7 +1195,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "116", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8272", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "94" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "94", + "SAI_QUEUE_STAT_BYTES": "73", + "SAI_QUEUE_STAT_DROPPED_BYTES": "31", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "13", + "SAI_QUEUE_STAT_PACKETS": "111", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "102" }, "COUNTERS:oid:0x1000000003012": { @@ -1001,7 +1221,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "74", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "5817", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "0" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "0", + "SAI_QUEUE_STAT_BYTES": "74", + "SAI_QUEUE_STAT_DROPPED_BYTES": "30", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "12", + "SAI_QUEUE_STAT_PACKETS": "112", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "103" }, "COUNTERS:oid:0x1000000003013": { @@ -1022,7 +1247,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "253", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4833", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "65" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "65", + "SAI_QUEUE_STAT_BYTES": "75", + "SAI_QUEUE_STAT_DROPPED_BYTES": "29", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "11", + "SAI_QUEUE_STAT_PACKETS": "113", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "104" }, "COUNTERS:oid:0x1000000003014": { @@ -1043,7 +1273,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "573", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "5", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "2860", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "48" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "48", + "SAI_QUEUE_STAT_BYTES": "76", + "SAI_QUEUE_STAT_DROPPED_BYTES": "28", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "10", + "SAI_QUEUE_STAT_PACKETS": "114", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "105" }, "COUNTERS:oid:0x1000000003015": { @@ -1064,7 +1299,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "230", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "6469", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "50" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "50", + "SAI_QUEUE_STAT_BYTES": "77", + "SAI_QUEUE_STAT_DROPPED_BYTES": "27", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "9", + "SAI_QUEUE_STAT_PACKETS": "115", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "106" }, "COUNTERS:oid:0x1000000004000": { @@ -1085,7 +1325,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "962", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "2", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "3473", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "45" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "45", + "SAI_QUEUE_STAT_BYTES": "78", + "SAI_QUEUE_STAT_DROPPED_BYTES": "26", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "8", + "SAI_QUEUE_STAT_PACKETS": "116", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "107" }, "COUNTERS:oid:0x1000000004001": { @@ -1106,7 +1351,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "788", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8089", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "15" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "15", + "SAI_QUEUE_STAT_BYTES": "79", + "SAI_QUEUE_STAT_DROPPED_BYTES": "25", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "7", + "SAI_QUEUE_STAT_PACKETS": "117", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "108" }, "COUNTERS:oid:0x1000000004002": { @@ -1127,7 +1377,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "413", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "3", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9569", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "8" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "8", + "SAI_QUEUE_STAT_BYTES": "80", + "SAI_QUEUE_STAT_DROPPED_BYTES": "24", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "6", + "SAI_QUEUE_STAT_PACKETS": "118", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "109" }, "COUNTERS:oid:0x1000000004003": { @@ -1148,7 +1403,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "701", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "8669", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "96" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "96", + "SAI_QUEUE_STAT_BYTES": "81", + "SAI_QUEUE_STAT_DROPPED_BYTES": "23", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "5", + "SAI_QUEUE_STAT_PACKETS": "119", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "110" }, "COUNTERS:oid:0x1000000004004": { @@ -1169,7 +1429,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "860", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "4", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "3633", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "92" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "92", + "SAI_QUEUE_STAT_BYTES": "82", + "SAI_QUEUE_STAT_DROPPED_BYTES": "22", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "4", + "SAI_QUEUE_STAT_PACKETS": "120", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "111" }, "COUNTERS:oid:0x1000000004005": { @@ -1190,7 +1455,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "45", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "5074", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "10" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "10", + "SAI_QUEUE_STAT_BYTES": "83", + "SAI_QUEUE_STAT_DROPPED_BYTES": "21", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "3", + "SAI_QUEUE_STAT_PACKETS": "121", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "112" }, "COUNTERS:oid:0x1000000004006": { @@ -1211,7 +1481,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "6", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "3372", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "93" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "93", + "SAI_QUEUE_STAT_BYTES": "84", + "SAI_QUEUE_STAT_DROPPED_BYTES": "20", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "2", + "SAI_QUEUE_STAT_PACKETS": "122", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "113" }, "COUNTERS:oid:0x1000000004007": { @@ -1232,7 +1507,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "440", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "1", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1084", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "7" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "7", + "SAI_QUEUE_STAT_BYTES": "85", + "SAI_QUEUE_STAT_DROPPED_BYTES": "19", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "1", + "SAI_QUEUE_STAT_PACKETS": "123", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "114" }, "COUNTERS:oid:0x1000000004008": { @@ -1253,7 +1533,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "281", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "1", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "5858", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "45" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "45", + "SAI_QUEUE_STAT_BYTES": "86", + "SAI_QUEUE_STAT_DROPPED_BYTES": "18", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "0", + "SAI_QUEUE_STAT_PACKETS": "124", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "115" }, "COUNTERS:oid:0x1000000004009": { @@ -1274,7 +1559,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "636", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "8", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "1734", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "63" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "63", + "SAI_QUEUE_STAT_BYTES": "87", + "SAI_QUEUE_STAT_DROPPED_BYTES": "17", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "1", + "SAI_QUEUE_STAT_PACKETS": "125", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "116" }, "COUNTERS:oid:0x1000000004010": { @@ -1295,7 +1585,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "625", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "3991", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "1" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "1", + "SAI_QUEUE_STAT_BYTES": "88", + "SAI_QUEUE_STAT_DROPPED_BYTES": "16", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "2", + "SAI_QUEUE_STAT_PACKETS": "126", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "117" }, "COUNTERS:oid:0x1000000004011": { @@ -1316,7 +1611,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "778", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "0", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "133", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "29" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "29", + "SAI_QUEUE_STAT_BYTES": "89", + "SAI_QUEUE_STAT_DROPPED_BYTES": "15", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "3", + "SAI_QUEUE_STAT_PACKETS": "127", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "118" }, "COUNTERS:oid:0x1000000004012": { @@ -1337,7 +1637,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "573", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "6631", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "57" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "57", + "SAI_QUEUE_STAT_BYTES": "90", + "SAI_QUEUE_STAT_DROPPED_BYTES": "14", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "4", + "SAI_QUEUE_STAT_PACKETS": "128", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "119" }, "COUNTERS:oid:0x1000000004013": { @@ -1358,7 +1663,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "768", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "1", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "9010", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "41" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "41", + "SAI_QUEUE_STAT_BYTES": "91", + "SAI_QUEUE_STAT_DROPPED_BYTES": "13", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "5", + "SAI_QUEUE_STAT_PACKETS": "129", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "120" }, "COUNTERS:oid:0x1000000004014": { @@ -1379,7 +1689,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "288", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "1", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "4343", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "60" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "60", + "SAI_QUEUE_STAT_BYTES": "92", + "SAI_QUEUE_STAT_DROPPED_BYTES": "12", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "6", + "SAI_QUEUE_STAT_PACKETS": "130", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "121" }, "COUNTERS:oid:0x1000000004015": { @@ -1400,7 +1715,12 @@ "PFC_WD_QUEUE_STATS_TX_PACKETS_LAST": "758", "PFC_WD_QUEUE_STATS_TX_DROPPED_PACKETS_LAST": "7", "PFC_WD_QUEUE_STATS_RX_PACKETS_LAST": "7599", - "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "8" + "PFC_WD_QUEUE_STATS_RX_DROPPED_PACKETS_LAST": "8", + "SAI_QUEUE_STAT_BYTES": "93", + "SAI_QUEUE_STAT_DROPPED_BYTES": "11", + "SAI_QUEUE_STAT_DROPPED_PACKETS": "7", + "SAI_QUEUE_STAT_PACKETS": "131", + "SAI_QUEUE_STAT_SHARED_WATERMARK_BYTES": "122" }, "COUNTERS_RIF_NAME_MAP": { @@ -1693,6 +2013,204 @@ "Ethernet-BP4:14": "oid:0x1000000004014", "Ethernet-BP4:15": "oid:0x1000000004015" }, + "COUNTERS_QUEUE_PORT_MAP": { + "oid:0x1000000001000": "oid:0x1000000000002", + "oid:0x1000000001001": "oid:0x1000000000002", + "oid:0x1000000001002": "oid:0x1000000000002", + "oid:0x1000000001003": "oid:0x1000000000002", + "oid:0x1000000001004": "oid:0x1000000000002", + "oid:0x1000000001005": "oid:0x1000000000002", + "oid:0x1000000001006": "oid:0x1000000000002", + "oid:0x1000000001007": "oid:0x1000000000002", + "oid:0x1000000001008": "oid:0x1000000000002", + "oid:0x1000000001009": "oid:0x1000000000002", + "oid:0x1000000001010": "oid:0x1000000000002", + "oid:0x1000000001011": "oid:0x1000000000002", + "oid:0x1000000001012": "oid:0x1000000000002", + "oid:0x1000000001013": "oid:0x1000000000002", + "oid:0x1000000001014": "oid:0x1000000000002", + "oid:0x1000000001015": "oid:0x1000000000002", + "oid:0x1000000002000": "oid:0x1000000000004", + "oid:0x1000000002001": "oid:0x1000000000004", + "oid:0x1000000002002": "oid:0x1000000000004", + "oid:0x1000000002003": "oid:0x1000000000004", + "oid:0x1000000002004": "oid:0x1000000000004", + "oid:0x1000000002005": "oid:0x1000000000004", + "oid:0x1000000002006": "oid:0x1000000000004", + "oid:0x1000000002007": "oid:0x1000000000004", + "oid:0x1000000002008": "oid:0x1000000000004", + "oid:0x1000000002009": "oid:0x1000000000004", + "oid:0x1000000002010": "oid:0x1000000000004", + "oid:0x1000000002011": "oid:0x1000000000004", + "oid:0x1000000002012": "oid:0x1000000000004", + "oid:0x1000000002013": "oid:0x1000000000004", + "oid:0x1000000002014": "oid:0x1000000000004", + "oid:0x1000000002015": "oid:0x1000000000004", + "oid:0x1000000003000": "oid:0x1000000000006", + "oid:0x1000000003001": "oid:0x1000000000006", + "oid:0x1000000003002": "oid:0x1000000000006", + "oid:0x1000000003003": "oid:0x1000000000006", + "oid:0x1000000003004": "oid:0x1000000000006", + "oid:0x1000000003005": "oid:0x1000000000006", + "oid:0x1000000003006": "oid:0x1000000000006", + "oid:0x1000000003007": "oid:0x1000000000006", + "oid:0x1000000003008": "oid:0x1000000000006", + "oid:0x1000000003009": "oid:0x1000000000006", + "oid:0x1000000003010": "oid:0x1000000000006", + "oid:0x1000000003011": "oid:0x1000000000006", + "oid:0x1000000003012": "oid:0x1000000000006", + "oid:0x1000000003013": "oid:0x1000000000006", + "oid:0x1000000003014": "oid:0x1000000000006", + "oid:0x1000000003015": "oid:0x1000000000006", + "oid:0x1000000004000": "oid:0x1000000000008", + "oid:0x1000000004001": "oid:0x1000000000008", + "oid:0x1000000004002": "oid:0x1000000000008", + "oid:0x1000000004003": "oid:0x1000000000008", + "oid:0x1000000004004": "oid:0x1000000000008", + "oid:0x1000000004005": "oid:0x1000000000008", + "oid:0x1000000004006": "oid:0x1000000000008", + "oid:0x1000000004007": "oid:0x1000000000008", + "oid:0x1000000004008": "oid:0x1000000000008", + "oid:0x1000000004009": "oid:0x1000000000008", + "oid:0x1000000004010": "oid:0x1000000000008", + "oid:0x1000000004011": "oid:0x1000000000008", + "oid:0x1000000004012": "oid:0x1000000000008", + "oid:0x1000000004013": "oid:0x1000000000008", + "oid:0x1000000004014": "oid:0x1000000000008", + "oid:0x1000000004015": "oid:0x1000000000008" + }, + "COUNTERS_QUEUE_INDEX_MAP": { + "oid:0x1000000001000": "0", + "oid:0x1000000001001": "1", + "oid:0x1000000001002": "2", + "oid:0x1000000001003": "3", + "oid:0x1000000001004": "4", + "oid:0x1000000001005": "5", + "oid:0x1000000001006": "6", + "oid:0x1000000001007": "7", + "oid:0x1000000001008": "8", + "oid:0x1000000001009": "9", + "oid:0x1000000001010": "10", + "oid:0x1000000001011": "11", + "oid:0x1000000001012": "12", + "oid:0x1000000001013": "13", + "oid:0x1000000001014": "14", + "oid:0x1000000001015": "15", + "oid:0x1000000002000": "0", + "oid:0x1000000002001": "1", + "oid:0x1000000002002": "2", + "oid:0x1000000002003": "3", + "oid:0x1000000002004": "4", + "oid:0x1000000002005": "5", + "oid:0x1000000002006": "6", + "oid:0x1000000002007": "7", + "oid:0x1000000002008": "8", + "oid:0x1000000002009": "9", + "oid:0x1000000002010": "10", + "oid:0x1000000002011": "11", + "oid:0x1000000002012": "12", + "oid:0x1000000002013": "13", + "oid:0x1000000002014": "14", + "oid:0x1000000002015": "15", + "oid:0x1000000003000": "0", + "oid:0x1000000003001": "1", + "oid:0x1000000003002": "2", + "oid:0x1000000003003": "3", + "oid:0x1000000003004": "4", + "oid:0x1000000003005": "5", + "oid:0x1000000003006": "6", + "oid:0x1000000003007": "7", + "oid:0x1000000003008": "8", + "oid:0x1000000003009": "9", + "oid:0x1000000003010": "10", + "oid:0x1000000003011": "11", + "oid:0x1000000003012": "12", + "oid:0x1000000003013": "13", + "oid:0x1000000003014": "14", + "oid:0x1000000003015": "15", + "oid:0x1000000004000": "0", + "oid:0x1000000004001": "1", + "oid:0x1000000004002": "2", + "oid:0x1000000004003": "3", + "oid:0x1000000004004": "4", + "oid:0x1000000004005": "5", + "oid:0x1000000004006": "6", + "oid:0x1000000004007": "7", + "oid:0x1000000004008": "8", + "oid:0x1000000004009": "9", + "oid:0x1000000004010": "10", + "oid:0x1000000004011": "11", + "oid:0x1000000004012": "12", + "oid:0x1000000004013": "13", + "oid:0x1000000004014": "14", + "oid:0x1000000004015": "15" + }, + "COUNTERS_QUEUE_TYPE_MAP": { + "oid:0x1000000001000": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001001": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001002": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001003": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001004": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001005": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001006": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001007": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000001008": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000001009": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000001010": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000001011": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000001012": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000001013": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000001014": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000001015": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002000": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002001": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002002": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002003": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002004": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002005": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002006": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002007": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000002008": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002009": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002010": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002011": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002012": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002013": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002014": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000002015": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003000": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003001": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003002": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003003": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003004": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003005": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003006": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003007": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000003008": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003009": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003010": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003011": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003012": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003013": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003014": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000003015": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004000": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004001": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004002": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004003": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004004": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004005": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004006": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004007": "SAI_QUEUE_TYPE_UNICAST", + "oid:0x1000000004008": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004009": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004010": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004011": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004012": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004013": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004014": "SAI_QUEUE_TYPE_MULTICAST", + "oid:0x1000000004015": "SAI_QUEUE_TYPE_MULTICAST" + }, "COUNTERS_FABRIC_PORT_NAME_MAP" : { "PORT0": "oid:0x1000000000143", "PORT1": "oid:0x1000000000144", diff --git a/tests/multi_asic_queue_counter_test.py b/tests/multi_asic_queue_counter_test.py new file mode 100644 index 0000000000..c501c68609 --- /dev/null +++ b/tests/multi_asic_queue_counter_test.py @@ -0,0 +1,151 @@ +import imp +import json +import os +import sys + +from click.testing import CliRunner +from unittest import TestCase +from swsscommon.swsscommon import ConfigDBConnector + +from .mock_tables import dbconnector + +import show.main as show +from utilities_common.cli import json_dump +from utilities_common.db import Db +from .utils import get_result_and_return_code + +test_path = os.path.dirname(os.path.abspath(__file__)) +modules_path = os.path.dirname(test_path) +scripts_path = os.path.join(modules_path, "scripts") +sys.path.insert(0, test_path) +sys.path.insert(0, modules_path) + + +show_queue_counters = """\ + Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes +--------- ----- -------------- --------------- ----------- ------------ +Ethernet0 UC0 68 30 56 74 +Ethernet0 UC1 69 31 55 73 +Ethernet0 UC2 70 32 54 72 +Ethernet0 UC3 71 33 53 71 +Ethernet0 UC4 72 34 52 70 +Ethernet0 UC5 73 35 51 69 +Ethernet0 UC6 74 36 50 68 +Ethernet0 UC7 75 37 49 67 +Ethernet0 MC8 76 38 48 66 +Ethernet0 MC9 77 39 47 65 +Ethernet0 MC10 78 40 46 64 +Ethernet0 MC11 79 41 45 63 +Ethernet0 MC12 80 42 44 62 +Ethernet0 MC13 81 43 43 61 +Ethernet0 MC14 82 44 42 60 +Ethernet0 MC15 83 45 41 59 + + Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes +--------- ----- -------------- --------------- ----------- ------------ +Ethernet4 UC0 84 46 40 58 +Ethernet4 UC1 85 47 39 57 +Ethernet4 UC2 86 48 38 56 +Ethernet4 UC3 87 49 37 55 +Ethernet4 UC4 88 50 36 54 +Ethernet4 UC5 89 51 35 53 +Ethernet4 UC6 90 52 34 52 +Ethernet4 UC7 91 53 33 51 +Ethernet4 MC8 92 54 32 50 +Ethernet4 MC9 93 55 31 49 +Ethernet4 MC10 94 56 30 48 +Ethernet4 MC11 95 57 29 47 +Ethernet4 MC12 96 58 28 46 +Ethernet4 MC13 97 59 27 45 +Ethernet4 MC14 98 60 26 44 +Ethernet4 MC15 99 61 25 43 + + Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes +------------ ----- -------------- --------------- ----------- ------------ +Ethernet-BP0 UC0 100 62 24 42 +Ethernet-BP0 UC1 101 63 23 41 +Ethernet-BP0 UC2 102 64 22 40 +Ethernet-BP0 UC3 103 65 21 39 +Ethernet-BP0 UC4 104 66 20 38 +Ethernet-BP0 UC5 105 67 19 37 +Ethernet-BP0 UC6 106 68 18 36 +Ethernet-BP0 UC7 107 69 17 35 +Ethernet-BP0 MC8 108 70 16 34 +Ethernet-BP0 MC9 109 71 15 33 +Ethernet-BP0 MC10 110 72 14 32 +Ethernet-BP0 MC11 111 73 13 31 +Ethernet-BP0 MC12 112 74 12 30 +Ethernet-BP0 MC13 113 75 11 29 +Ethernet-BP0 MC14 114 76 10 28 +Ethernet-BP0 MC15 115 77 9 27 + + Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes +------------ ----- -------------- --------------- ----------- ------------ +Ethernet-BP4 UC0 116 78 8 26 +Ethernet-BP4 UC1 117 79 7 25 +Ethernet-BP4 UC2 118 80 6 24 +Ethernet-BP4 UC3 119 81 5 23 +Ethernet-BP4 UC4 120 82 4 22 +Ethernet-BP4 UC5 121 83 3 21 +Ethernet-BP4 UC6 122 84 2 20 +Ethernet-BP4 UC7 123 85 1 19 +Ethernet-BP4 MC8 124 86 0 18 +Ethernet-BP4 MC9 125 87 1 17 +Ethernet-BP4 MC10 126 88 2 16 +Ethernet-BP4 MC11 127 89 3 15 +Ethernet-BP4 MC12 128 90 4 14 +Ethernet-BP4 MC13 129 91 5 13 +Ethernet-BP4 MC14 130 92 6 12 +Ethernet-BP4 MC15 131 93 7 11 + +""" + + +show_queue_counters_port = """\ + Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes +------------ ----- -------------- --------------- ----------- ------------ +Ethernet-BP4 UC0 116 78 8 26 +Ethernet-BP4 UC1 117 79 7 25 +Ethernet-BP4 UC2 118 80 6 24 +Ethernet-BP4 UC3 119 81 5 23 +Ethernet-BP4 UC4 120 82 4 22 +Ethernet-BP4 UC5 121 83 3 21 +Ethernet-BP4 UC6 122 84 2 20 +Ethernet-BP4 UC7 123 85 1 19 +Ethernet-BP4 MC8 124 86 0 18 +Ethernet-BP4 MC9 125 87 1 17 +Ethernet-BP4 MC10 126 88 2 16 +Ethernet-BP4 MC11 127 89 3 15 +Ethernet-BP4 MC12 128 90 4 14 +Ethernet-BP4 MC13 129 91 5 13 +Ethernet-BP4 MC14 130 92 6 12 +Ethernet-BP4 MC15 131 93 7 11 + +""" + +class TestQueueMultiAsic(object): + @classmethod + def setup_class(cls): + os.environ["PATH"] += os.pathsep + scripts_path + os.environ['UTILITIES_UNIT_TESTING'] = "2" + os.environ["UTILITIES_UNIT_TESTING_TOPOLOGY"] = "multi_asic" + print("SETUP") + + def test_queue_counters(self): + return_code, result = get_result_and_return_code('queuestat -n asic0') + assert return_code == 0 + print(result) + assert result == show_queue_counters + + def test_queue_counters_port(self): + return_code, result = get_result_and_return_code('queuestat -p Ethernet-BP4 -n asic0') + assert return_code == 0 + print(result) + assert result == show_queue_counters_port + + @classmethod + def teardown_class(cls): + os.environ["PATH"] = os.pathsep.join(os.environ["PATH"].split(os.pathsep)[:-1]) + os.environ['UTILITIES_UNIT_TESTING'] = "0" + os.environ["UTILITIES_UNIT_TESTING_TOPOLOGY"] = "" + print("TEARDOWN")