Skip to content

[YANG][DPB] Added regex with no 40G mode#8958

Closed
vadymhlushko-mlnx wants to merge 1 commit intosonic-net:masterfrom
vadymhlushko-mlnx:yang_breakout_cfg_40g_fix
Closed

[YANG][DPB] Added regex with no 40G mode#8958
vadymhlushko-mlnx wants to merge 1 commit intosonic-net:masterfrom
vadymhlushko-mlnx:yang_breakout_cfg_40g_fix

Conversation

@vadymhlushko-mlnx
Copy link
Contributor

Signed-off-by: Vadym Hlushko [email protected]

Why I did it

Fix for the issue caused by - pull/8712).
For some platforms was removed 40G speed mode, but the regex for Dynamic Port breakout modes validation remains the same.

How I did it

Added new regex for - 2x50G[25G,10G] and 2x50G[25G,10G,1G] breakout modes

How to verify it

Extended existing test case with new values.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@liat-grozovik
Copy link
Collaborator

@praveen-li can you please review?

* Breakout to that breakout-mode.
*/
pattern '1x100G\[40G\]|2x50G|4x25G\[10G\]|2x25G\(2\)\+1x50G\(2\)|1x50G\(2\)\+2x25G\(2\)|1x400G|2x200G|4x100G|8x50G|1x200G\[100G,50G,40G,25G,10G,1G\]|2x100G\[50G,40G,25G,10G,1G\]|4x50G\[40G,25G,10G,1G\]|1x25G\[10G\]|1x100G\[50G,40G,25G,10G\]|2x50G\[40G,25G,10G\]|4x25G\[10G\]|1x25G\[10G,1G\]|1x100G\[50G,40G,25G,10G,1G\]|2x50G\[40G,25G,10G,1G\]|4x25G\[10G,1G\]|1x400G\[200G,100G,50G,40G,25G,10G,1G\]|2x200G\[100G,50G,40G,25G,10G,1G\]|4x100G\[50G,40G,25G,10G,1G\]';
pattern '1x100G\[40G\]|2x50G|4x25G\[10G\]|2x25G\(2\)\+1x50G\(2\)|1x50G\(2\)\+2x25G\(2\)|1x400G|2x200G|4x100G|8x50G|1x200G\[100G,50G,40G,25G,10G,1G\]|2x100G\[50G,40G,25G,10G,1G\]|4x50G\[40G,25G,10G,1G\]|1x25G\[10G\]|1x100G\[50G,40G,25G,10G\]|2x50G\[40G,25G,10G\]|4x25G\[10G\]|1x25G\[10G,1G\]|1x100G\[50G,40G,25G,10G,1G\]|2x50G\[25G,10G,1G\]|2x50G\[25G,10G\]|2x50G\[40G,25G,10G,1G\]|4x25G\[10G,1G\]|1x400G\[200G,100G,50G,40G,25G,10G,1G\]|2x200G\[100G,50G,40G,25G,10G,1G\]|4x100G\[50G,40G,25G,10G,1G\]';
Copy link
Member

Choose a reason for hiding this comment

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

We are removing this pattern under other PR, so this PR will become not applicable. Thx.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please refer to the other PR?
As this issue is also needed for 202106 we should have the fix soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are removing this pattern under other PR, so this PR will become not applicable. Thx.

@praveen-li could you please provide a link to other PR?

@vadymhlushko-mlnx vadymhlushko-mlnx changed the title [yang][DPB] Added regex with no 40G mode [YANG][DPB] Added regex with no 40G mode Oct 19, 2021
@praveen-li
Copy link
Member

praveen-li commented Oct 25, 2021 via email

@volodymyrsamotiy
Copy link
Collaborator

Thanks @praveen-li for sharing the PR #6801.
Are you planning to take it to the 202106 branch?

@vadymhlushko-mlnx vadymhlushko-mlnx deleted the yang_breakout_cfg_40g_fix branch August 16, 2022 13:41
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.

4 participants