Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sonic-buildimage: ignore missing hwsku dict intfs #20618

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccroy-arista
Copy link
Contributor

Why I did it

For new hwskus that leave some front panel ports unpopulated, sonic-config-engine will raise an exception when checking the hwsku dict for interfaces corresponding to those front panel ports. This change removes that exception, allowing duts for those hwskus to be configured.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Replaced the raised exception with a continue statement.

How to verify it

This can be verfied by configuring an appropriate dut against the Arista-7060X6-64PE-C256S2 hwsku.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202405

Tested branch (Please provide the tested image version)

202405

Description for the changelog

With the introduction of new hwskus that do not utilize every front panel port available, i.e. the ports are not fully populated, the
sonic-config-engine will raise an exception when checking the hwsku dict for such interfaces. This change removes that exception, allowing duts for those hwskus to be configured.

With the introduction of new hwskus that do not
utilize every front panel port available, i.e.
the ports are not fully populated, the
sonic-config-engine will raise an exception when
checking the hwsku dict for such interfaces.
This change removes that exception.
Copy link

@sdszhang sdszhang left a comment

Choose a reason for hiding this comment

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

LGTM

@sdszhang
Copy link

@r12f can you help to review this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants