Skip to content

[manual] [PR:3926] feat: support specific BP port info for show int (#3926)#191

Merged
cyw233 merged 1 commit intoAzure:202405from
cyw233:support-bp-show-int-status-202405
Jun 23, 2025
Merged

[manual] [PR:3926] feat: support specific BP port info for show int (#3926)#191
cyw233 merged 1 commit intoAzure:202405from
cyw233:support-bp-show-int-status-202405

Conversation

@cyw233
Copy link
Copy Markdown

@cyw233 cyw233 commented Jun 23, 2025

What I did

This PR resolves sonic-net/sonic-utilities#3925.

In this PR, I enhanced the show interfaces command to support specific BP port information display for multi-ASIC devices, for example, T2 Chassis. It means we can use commands like show interfaces status Ethernet-BP128 -d all to get the status of a backplane interface, e.g. Ethernet-BP128 itself, after this PR, just like what we used to do for a specific frontend interface (plus an extra -d all of course).

The commands I updated for getting specific BP interface information:

  • show interfaces description
  • show interfaces status
  • show interfaces tpid
  • show interfaces counters
  • show interfaces autoneg status
  • show interfaces link-training status
  • show interfaces fec status

Please note that nothing has changed when running these commands on a single-ASIC device, and nothing has changed when running these commands on a multi-ASIC device without specifying an interface. The only behavior change is when we run the above commands for a specific interface on a multi-ASIC device.

How I did it

How to verify it

We can try the following commands after this PR to see the information of the backplane interface Ethernet-BP128 itself:

  • show interfaces description Ethernet-BP128 -d all
  • show interfaces status Ethernet-BP128 -d all
  • show interfaces tpid Ethernet-BP128 -d all
  • show interfaces counters -i Ethernet-BP128 -d all
  • show interfaces autoneg status Ethernet-BP128 -d all
  • show interfaces link-training status Ethernet-BP128 -d all
  • show interfaces fec status Ethernet-BP128 -d all

Previous command output (if the output of a command-line utility has changed)

Before this PR, when we run show interfaces status Ethernet-BP128 -d all, the output will be empty:

admin@dut:~$ show int status Ethernet-BP128 -d all
     Interface                Lanes    Speed    MTU    FEC         Alias           Vlan    Oper    Admin    Type    Asym PFC
--------------  -------------------  -------  -----  -----  ------------  -------------  ------  -------  ------  ----------

New command output (if the output of a command-line utility has changed)

After this PR, when we run show interfaces status Ethernet-BP128 -d all, the output will be something like the following:

admin@dut:~$ show int status Ethernet-BP128 -d all
     Interface                Lanes    Speed    MTU    FEC         Alias           Vlan    Oper    Admin    Type    Asym PFC
--------------  -------------------  -------  -----  -----  ------------  -------------  ------  -------  ------  ----------
Ethernet-BP128  1700,1701,1702,1703     100G   9000    N/A  Eth310-ASIC1  PortChannel38      up       up     N/A         off

@cyw233
Copy link
Copy Markdown
Author

cyw233 commented Jun 23, 2025

Original PR: sonic-net/sonic-utilities#3926

Copy link
Copy Markdown

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yejianquan
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@cyw233 cyw233 force-pushed the support-bp-show-int-status-202405 branch from edd25bd to c14949c Compare June 23, 2025 03:59
@cyw233
Copy link
Copy Markdown
Author

cyw233 commented Jun 23, 2025

@microsoft-github-policy-service agree

@cyw233
Copy link
Copy Markdown
Author

cyw233 commented Jun 23, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@cyw233 cyw233 merged commit 923067f into Azure:202405 Jun 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants