Skip to content

[Nexthop][m4340nhp] Use the 1024-port DSF block in agent HW test configs - #1885

Open
marif-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:marif.fboss-m4340nhp-hw-test-dsf-block
Open

marif-nexthop wants to merge 1 commit into
meta:mainfrom
nexthop-ai:marif.fboss-m4340nhp-hw-test-dsf-block

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

Agent HW tests on m4340nhp aborted at init with Interface intfID :522 is out of range for corresponding VOQ switch sys port range, because the test config fell back to a 44-port system port block.

  • getRdswSysPortBlockSize() returns the 1024-port block for m4340nhp, as it does for blackwolf800banw.
  • populateSwitchInfo() takes the m4340nhp DSF node's system port ranges, offsets and inband port from switchInfo, as it does for janga800bic. The computed defaults gave a local system port offset of 0 instead of 17.

Test Plan

Tested on a m4340nhp device. AgentEmptyVoqTest.CheckInit, AgentVoqSwitchTest.addRemoveNeighbor and AgentVoqSwitchTest.sendPacketCpuAndFrontPanel pass on cold and warm boot.

@marif-nexthop
marif-nexthop requested a review from a team as a code owner October 31, 2026 02:23
@meta-cla meta-cla Bot added the CLA Signed label Oct 31, 2026
@github-actions github-actions Bot added nexthop project:m4340nhp FBOSS project: m4340nhp labels Oct 31, 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