Skip to content

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

Merged
lguohan merged 1 commit intosonic-net:masterfrom
prgeor:yang-channel
Mar 14, 2023
Merged

Add Yang model support for adding Channel to PORT table#14228
lguohan merged 1 commit intosonic-net:masterfrom
prgeor:yang-channel

Conversation

@prgeor
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

prgeor commented Mar 13, 2023

@ganglyu can you please review ?

@prgeor
Copy link
Copy Markdown
Contributor Author

prgeor commented Mar 14, 2023

@lguohan can you help merge

@prgeor
Copy link
Copy Markdown
Contributor Author

prgeor commented Mar 14, 2023

@yxieca please help merge to 202205

@prgeor
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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