[Mellanox] Fix for QSFP-DD channel status (#5900)

Wrong object init broke the API. Replace object to the correct type.

Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
This commit is contained in:
shlomibitton 2020-11-11 21:08:15 +02:00 committed by GitHub
parent e0ebcc0c76
commit fd9bd40188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1265,7 +1265,7 @@ class SFP(SfpBase):
return False return False
elif self.sfp_type == QSFP_DD_TYPE: elif self.sfp_type == QSFP_DD_TYPE:
offset = 0 offset = 0
sfpd_obj = qsfp_dd_InterfaceId() sfpd_obj = qsfp_dd_Dom()
dom_channel_status_raw = self._read_eeprom_specific_bytes((offset + QSFP_DD_CHANNL_STATUS_OFFSET), QSFP_DD_CHANNL_STATUS_WIDTH) dom_channel_status_raw = self._read_eeprom_specific_bytes((offset + QSFP_DD_CHANNL_STATUS_OFFSET), QSFP_DD_CHANNL_STATUS_WIDTH)
if dom_channel_status_raw is None: if dom_channel_status_raw is None: