You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…also fix other potential bugs (sonic-net#169)
#### Description
Gracefully handle improper 'specification_compliance' field; also fix other potential bugs and adjust some style
#### Motivation and Context
The 'specification_compliance' field of transceiver info is expected to be a string representation of a dictionary. However, there is a chance, upon some kind of platform issue that a vendor's platform API returns something like 'N/A'. In this case, xcrvd would crash. Rather than crash, xcvrd should handle this gracefully and log a warning message instead.
Also fixed a couple potential bugs where `default_dict` was being compared to `0`, when it should have been `len(default_dict)`
Also rename some constants using uppercase naming convention.
tabulate
moduleThe text was updated successfully, but these errors were encountered: