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

[sfputil] Make SfpUtilHelper.get_physical_to_logical noexcept as in SfpUtilBase #96

Merged
merged 1 commit into from
Jun 27, 2020

Conversation

vboykox
Copy link
Member

@vboykox vboykox commented Jun 21, 2020

The SfpUtil interface used in xcvrd expects get_physical_to_logical to return None in the case of unknown port:
https://github.com/Azure/sonic-platform-daemons/blob/master/sonic-xcvrd/scripts/xcvrd#L906

Note SfpUtilBase implementation already conforms the interface in xcvrd:
https://github.com/Azure/sonic-platform-common/blob/master/sonic_platform_base/sonic_sfp/sfputilbase.py#L603

@vboykox vboykox changed the title Make SfpUtilHelper.get_physical_to_logical noexcept as in SfpUtilBase [sfputil] Make SfpUtilHelper.get_physical_to_logical noexcept as in SfpUtilBase Jun 22, 2020
Make SfpUtilHelper.get_physical_to_logical noexcept as in SfpUtilBase

Signed-off-by: Volodymyr Boyko <[email protected]>
@vboykox
Copy link
Member Author

vboykox commented Jun 22, 2020

@keboliu @lguohan please review

@vboykox vboykox force-pushed the fix-sfputilhelper branch 2 times, most recently from 0e5a100 to 4b13484 Compare June 22, 2020 15:15
@jleveque jleveque merged commit 82bbeab into sonic-net:master Jun 27, 2020
abdosi pushed a commit that referenced this pull request Jul 8, 2020
…fpUtilBase (#96)

The SfpUtil interface used in xcvrd expects get_physical_to_logical to return None in the case of unknown port:
https://github.com/Azure/sonic-platform-daemons/blob/master/sonic-xcvrd/scripts/xcvrd#L906

Note SfpUtilBase implementation already conforms the interface in xcvrd:
https://github.com/Azure/sonic-platform-common/blob/master/sonic_platform_base/sonic_sfp/sfputilbase.py#L603

Signed-off-by: Volodymyr Boyko <[email protected]>
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