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

Add Yang model support for adding Channel to PORT table #14228

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

prgeor
Copy link
Contributor

@prgeor prgeor commented Mar 13, 2023

Why I did it

Add 'channel' to the CONFIG_DB PORT table. This will be needed to support PORT breakout to multiple channel ports so that Xcvrd can understand which datapath or channel to initialize on the CMIS compliant optics

How I did it

Add 'channel' to the CONFIG_DB PORT table.

How to verify it

Added unit test for valid and invalid channel number
Channel 0 -> No breakout
Channel 1 to 8 -> Breakout channel 1,2, ..8

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

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

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

https://github.com/sonic-net/sonic-buildimage/blob/f011607a8a873b5b391aa54559a368998d25fd35/src/sonic-yang-models/doc/Configuration.md#port

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

@prgeor prgeor requested a review from qiluo-msft as a code owner March 13, 2023 19:13
@prgeor
Copy link
Contributor Author

prgeor commented Mar 13, 2023

@shyam77git please review

@prgeor prgeor requested a review from mihirpat1 March 13, 2023 19:13
@prgeor prgeor added the YANG YANG model related changes label Mar 13, 2023
@qiluo-msft qiluo-msft requested a review from ganglyu March 13, 2023 19:57
@prgeor
Copy link
Contributor Author

prgeor commented Mar 13, 2023

@ganglyu can you please review ?

@prgeor
Copy link
Contributor Author

prgeor commented Mar 14, 2023

@lguohan can you help merge

@prgeor
Copy link
Contributor Author

prgeor commented Mar 14, 2023

@yxieca please help merge to 202205

@prgeor
Copy link
Contributor Author

prgeor commented Mar 14, 2023

@StormLiangMS please help merge to 202211

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Mar 14, 2023
…c-net#14228)

Why I did it
Add 'channel' to the CONFIG_DB PORT table. This will be needed to support PORT breakout to multiple channel ports so that Xcvrd can understand which datapath or channel to initialize on the CMIS compliant optics

How I did it
Add 'channel' to the CONFIG_DB PORT table.

How to verify it
Added unit test for valid and invalid channel number
Channel 0 -> No breakout
Channel 1 to 8 -> Breakout channel 1,2, ..8

Signed-off-by: Prince George <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #14240

mssonicbld pushed a commit that referenced this pull request Mar 15, 2023
Why I did it
Add 'channel' to the CONFIG_DB PORT table. This will be needed to support PORT breakout to multiple channel ports so that Xcvrd can understand which datapath or channel to initialize on the CMIS compliant optics

How I did it
Add 'channel' to the CONFIG_DB PORT table.

How to verify it
Added unit test for valid and invalid channel number
Channel 0 -> No breakout
Channel 1 to 8 -> Breakout channel 1,2, ..8

Signed-off-by: Prince George <[email protected]>
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Mar 19, 2023
…c-net#14228)

Why I did it
Add 'channel' to the CONFIG_DB PORT table. This will be needed to support PORT breakout to multiple channel ports so that Xcvrd can understand which datapath or channel to initialize on the CMIS compliant optics

How I did it
Add 'channel' to the CONFIG_DB PORT table.

How to verify it
Added unit test for valid and invalid channel number
Channel 0 -> No breakout
Channel 1 to 8 -> Breakout channel 1,2, ..8

Signed-off-by: Prince George <[email protected]>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #14338

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.

7 participants