Skip to content

[Nexthop][m4340nhp] Skip ports without PRBS state in show interface prbs state - #1884

Open
marif-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:marif.fboss-fboss2-prbs-state-missing-ports
Open

marif-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:marif.fboss-fboss2-prbs-state-missing-ports

Conversation

@marif-nexthop

Copy link
Copy Markdown
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

With no ports given, fboss2 show interface prbs state lists every port and looks up its state for each component. The agent and qsfp_service report PRBS state only for the ports they serve, so the command failed on the first port without an entry, such as a recycle port.

Thrift call failed: 'Could not find interface in PRBS states: rcy1/1/1177'

The command now skips missing (port, component) pairs and leaves out ports with no state at all. A port named on the command line with no PRBS state still fails as before.

Test Plan

The new CmdShowInterfacePrbsTest cases in fboss2_cmd_test pass, and they fail without the fix. On a m4340nhp device, fboss2 show interface prbs state now lists 85 ports instead of failing.

@marif-nexthop
marif-nexthop requested a review from a team as a code owner October 30, 2026 23:56
@github-actions github-actions Bot added nexthop project:m4340nhp FBOSS project: m4340nhp labels Oct 30, 2026
@meta-cla meta-cla Bot added the CLA Signed label Oct 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant