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

Added support for front panel port prefix regex #10471

Conversation

itamar-talmon
Copy link

@itamar-talmon itamar-talmon commented Apr 5, 2022

  • What I did
    Removed the dependency on the "Ethernet" string in the SONiC code base and added support
    for extending the front panel port name pattern.

  • How I did it

  1. Introduced FRONT_PANEL_PORT_PREFIX_REGEX that extends the old FRONT_PANEL_PORT_PREFIX ("Ethernet")
  2. Updated all the relevant usage of the "Ethernet" throughout the code base to use the new regex pattern
  • How to verify it
    Pass all UT and CI testing.

  • Why I did it
    In order to support distinguishing between different types of front panel ports in a maintainable fashion.
    Specifically, we are planning to bring up a system with 'service' ports (in addition to the regular ethernet data ports) - these
    are lower speed ports that used for connection to accelerators, internal loopbacks and more.

- Related Commits and Merge Strategy
This is part of a group of related commits and should be merged after sonic-net/sonic-swss-common#598.

The full merge order is:

  1. swss-common - Added front panel port prefix regex to schema.h sonic-swss-common#598
  2. sonic-buildimage - Added support for front panel port prefix regex #10471
  3. swsssdk - Added support for front panel port prefix regex sonic-py-swsssdk#121
  4. all the rest
    https://github.com/Azure/sonic-utilities/pull/2127
    https://github.com/Azure/sonic-snmpagent/pull/251
    https://github.com/Azure/sonic-swss/pull/2223
    https://github.com/Azure/sonic-platform-daemons/pull/252
    https://github.com/Azure/sonic-platform-common/pull/274

@ghost
Copy link

ghost commented Apr 5, 2022

CLA assistant check
All CLA requirements met.

@itamar-talmon
Copy link
Author

This PR depends on sonic-net/sonic-swss-common#598 so it will not pass until it merged

@itamar-talmon itamar-talmon force-pushed the front_panel_port_name_regex branch from 55c242f to a2eab30 Compare May 31, 2022 09:41
@itamar-talmon itamar-talmon requested a review from a team as a code owner May 31, 2022 09:41
@itamar-talmon itamar-talmon force-pushed the front_panel_port_name_regex branch 2 times, most recently from cd2f2d2 to 36b3d0e Compare June 1, 2022 11:26
@itamar-talmon
Copy link
Author

@kcudnik @qiluo-msft - could you please check it out after my update?
Checks will fail until related commits will be merged (in the description).
Thank you!

@itamar-talmon itamar-talmon force-pushed the front_panel_port_name_regex branch 2 times, most recently from a3d60e7 to b001af0 Compare June 21, 2022 08:12
@itamar-talmon
Copy link
Author

@kcudnik @qiluo-msft - I updated the code with the new comments and rebased since the dependency fix was already merged to master by a different commit (you can check my comment there). Please check, thank you!

qiluo-msft
qiluo-msft previously approved these changes Jul 5, 2022
@itamar-talmon itamar-talmon force-pushed the front_panel_port_name_regex branch from 47905f5 to a0c07b4 Compare January 12, 2023 08:15
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 12, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@itamar-talmon itamar-talmon force-pushed the front_panel_port_name_regex branch 2 times, most recently from 65b39de to daaf438 Compare January 12, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants