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

[xcvrd] Fix issue: do not print error log when module support non-ethernet application #37

Closed
wants to merge 1 commit into from

Conversation

Junchao-Mellanox
Copy link
Owner

@Junchao-Mellanox Junchao-Mellanox commented Jun 14, 2024

Description

In function get_interface_speed, it will log an error if the application name does not contain a valid speed. However, many modules support both ethernet and non-ethernet (e.g. IB) application, non-ethernet application would not contain a valid speed. For such module, the function get_interface_speed logs an error to syslog:

Jun 12 20:09:57.315556 sonic ERR pmon#xcvrd: No interface speed found for: 'IB HDR (Arch.Spec.Vol.2)'

Actually, this is not an error because the module will finally find a proper application via the for loop in function get_cmis_application_desired

Motivation and Context

Remove the unexpected error log since it could be a false alarm. Also, log the module applications if it cannot find a proper application.

How Has This Been Tested?

Manual test

Additional Information (Optional)

@Junchao-Mellanox Junchao-Mellanox requested a review from keboliu June 14, 2024 01:24
@Junchao-Mellanox
Copy link
Owner Author

ci 4159 passed

@Junchao-Mellanox Junchao-Mellanox deleted the master-err-log branch June 17, 2024 02:48
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.

2 participants