From 1e37d0e4e8a34e54274bdb210c14c0ff365fd178 Mon Sep 17 00:00:00 2001 From: jfeng-arista <98421150+jfeng-arista@users.noreply.github.com> Date: Mon, 19 Dec 2022 14:18:46 -0800 Subject: [PATCH] [voq][chassis]Add show fabric counters port/queue commands (#2522) What I did Enable show fabric counters port command: show fabric counters port ASIC PORT STATE IN_CELL IN_OCTET OUT_CELL OUT_OCTET CRC FEC_CORRECTABLE FEC_UNCORRECTABLE SYMBOL_ERR ------ ------ ------- --------- ---------- ---------- ----------- ----- ----------------- ------------------- ------------ 0 0 up 0 0 4 740 0 3 305128 3 0 1 up 0 0 4 740 0 314 232123 245 0 2 up 0 0 4 740 0 0 265156 0 ....... Enable show fabric counters queue command : ASIC PORT STATE QUEUE_ID CURRENT_BYTE CURRENT_LEVEL WATERMARK_LEVEL ------ ------ ------- ---------- -------------- --------------- ----------------- 0 0 up 0 N/A N/A N/A 0 1 up 0 N/A N/A N/A ...... --- orchagent/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/orchagent/main.cpp b/orchagent/main.cpp index 8d204dbf2d..69eef0a8e9 100644 --- a/orchagent/main.cpp +++ b/orchagent/main.cpp @@ -708,9 +708,8 @@ int main(int argc, char **argv) if (gMySwitchType == "voq") { orchDaemon->setFabricEnabled(true); - // SAI doesn't fully support counters for non fabric asics - orchDaemon->setFabricPortStatEnabled(false); - orchDaemon->setFabricQueueStatEnabled(false); + orchDaemon->setFabricPortStatEnabled(true); + orchDaemon->setFabricQueueStatEnabled(true); } } else