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

[DellEMC] Ensure concrete platform API classes call base class initializer #6853

Merged
merged 1 commit into from
Feb 25, 2021
Merged

[DellEMC] Ensure concrete platform API classes call base class initializer #6853

merged 1 commit into from
Feb 25, 2021

Conversation

jleveque
Copy link
Contributor

Why I did it

In preparation for the merging of sonic-net/sonic-platform-common#173, which properly defines class and instance members in the Platform API base classes.

It is proper object-oriented methodology to call the base class initializer, even if it is only the default initializer. This also future-proofs the potential addition of custom initializers in the base classes down the road.

How I did it

Ensure the base class initializer is called in all concrete initializers

How to verify it

Run image on affected DellEMC platforms, ensure platform API continues to function properly

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

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

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

@jleveque
Copy link
Contributor Author

@aravindmani-1, @padmanarayana: Please review

@jleveque jleveque merged commit ac15a42 into sonic-net:master Feb 25, 2021
@jleveque jleveque deleted the dell_platform_api_fixes branch February 25, 2021 19:20
yxieca pushed a commit that referenced this pull request Mar 4, 2021
…lizer (#6853)

In preparation for the merging of sonic-net/sonic-platform-common#173, which properly defines class and instance members in the Platform API base classes.

It is proper object-oriented methodology to call the base class initializer, even if it is only the default initializer. This also future-proofs the potential addition of custom initializers in the base classes down the road.
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…lizer (sonic-net#6853)

In preparation for the merging of sonic-net/sonic-platform-common#173, which properly defines class and instance members in the Platform API base classes.

It is proper object-oriented methodology to call the base class initializer, even if it is only the default initializer. This also future-proofs the potential addition of custom initializers in the base classes down the road.
lolyu pushed a commit to lolyu/sonic-buildimage that referenced this pull request Sep 13, 2021
…lizer (sonic-net#6853)

In preparation for the merging of sonic-net/sonic-platform-common#173, which properly defines class and instance members in the Platform API base classes.

It is proper object-oriented methodology to call the base class initializer, even if it is only the default initializer. This also future-proofs the potential addition of custom initializers in the base classes down the road.
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.

5 participants