Skip to content

feat(interfaces): take the port index from the port layout - #82

Merged
djothi merged 1 commit into
criteo:mainfrom
djothi:feat/port-layout-index
Oct 23, 2026
Merged

djothi merged 1 commit into
criteo:mainfrom
djothi:feat/port-layout-index

Conversation

@djothi

@djothi djothi commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Description:

Take the front-panel port index from the new index field of the CMDB port layout instead of guessing it from the port short name.

Guessing broke on platforms whose short names don't match the NOS index (e.g. numbered from zero).

When the layout has no index, none is emitted. Breakout ports share the index of their parent port.

Before the commit:

Index derived from the short name:

  • etp1 → 0
  • etp3a → 2
  • etp0 → no index

After the commit:

Index taken as is from the CMDB port layout.

Use the new `index` field of the CMDB port layout instead of guessing
it from the port short name. No index is emitted when the layout has
none.
@djothi
djothi requested a review from a team October 23, 2026 14:23
@djothi
djothi merged commit 55c99c4 into criteo:main Oct 23, 2026
2 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