-
Notifications
You must be signed in to change notification settings - Fork 175
[Xcvrd]: Fix optics insertion/removal not detected #333
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
Conversation
If I remember correctly the default log level of PMON daemons is Notice, Info level log won't be printed, shall we change the default log level of the daemons or raise the Info log level to Notice? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I'll let @mihirpat1 approve this PR since he has a comment opened.
Edit: Actually I saw that he approved as well
yes added log_notice() in latest commit |
@yxieca please cherry-pick to 202205 |
@StormLiangMS please cherry-pick to 202211 |
* [Xcvrd]: Fix optics insertion/removal not detected * log_info() -> log_notice()
* [Xcvrd]: Fix optics insertion/removal not detected * log_info() -> log_notice()
Description
Fixed optics insertion/removal not detected by Xcvrd.
The key to port_mapping.get_physical_to_logical() expects integer. Otherwise, on OIR events, Xcvrd throws the below error and misses processing of OIR events
Motivation and Context
"show interface transceiver presence" did not reflect the actual presence/absence of the transceiver.
How Has This Been Tested?
Physically removed and inserted optics on Arista 7050CX and ensured the optics is shown in:-
Additional Information (Optional)