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

[chassis] add condition is yang model to make lanes not mandatory for chassis #19968

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

arlakshm
Copy link
Contributor

Why I did it

In the sonic chassis the port table on the host does not lanes. Add conditions in the lab chassis to make lanes not mandatory for chassis devices

Work item tracking
  • Microsoft ADO 29108681:

How I did it

Add the check in sonic-port.yang to make lanes are mandatory in the host config_db only for non-chassis devices.

How to verify it

UT.

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@arlakshm arlakshm requested review from abdosi, xincunli-sonic, qiluo-msft and ganglyu and removed request for qiluo-msft August 20, 2024 19:02
Copy link
Contributor

@xincunli-sonic xincunli-sonic left a comment

Choose a reason for hiding this comment

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

LGTM.

@wen587
Copy link
Contributor

wen587 commented Sep 19, 2024

Hi @arlakshm , could you check the failure of checker?

@arista-nwolfe
Copy link
Contributor

I confirmed that this PR fixes the failures seen in sonic-net/sonic-mgmt#14583 for Arista.
@arlakshm could you mark this patch to be cast to 202405?

@arlakshm arlakshm self-assigned this Sep 25, 2024
@arlakshm
Copy link
Contributor Author

arlakshm commented Oct 7, 2024

/azpw ms_conflict

@arlakshm
Copy link
Contributor Author

arlakshm commented Oct 8, 2024

/azpw ms_conflict

@xincunli-sonic
Copy link
Contributor

Hi @qiluo-msft , can you help merge this one?

@qiluo-msft qiluo-msft merged commit cc32965 into sonic-net:master Oct 10, 2024
23 checks passed
sschlafman pushed a commit to sschlafman/sonic-buildimage that referenced this pull request Oct 15, 2024
… chassis (sonic-net#19968)

### Why I did it
In the sonic chassis the port table on the host does not lanes. Add conditions in the lab chassis to make lanes not mandatory for chassis devices

### How I did it
Add the check in `sonic-port.yang` to make lanes are mandatory in the host config_db only for non-chassis devices.

#### How to verify it
UT.
qiluo-msft pushed a commit to sonic-net/sonic-utilities that referenced this pull request Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants