Skip to content

Commit

Permalink
[voq][chassis]Add show fabric counters port/queue commands (#2522)
Browse files Browse the repository at this point in the history
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
 ......
  • Loading branch information
jfeng-arista authored Dec 19, 2022
1 parent 44d1e9c commit beaac71
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions orchagent/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beaac71

Please sign in to comment.