[platform] Update QSFP method name 'parse_qsfp_dom_capability' -> 'parse_dom_capability' (#6695)
**- Why I did it** PR https://github.com/Azure/sonic-platform-common/pull/102 modified the name of the SFF-8436 (QSFP) method to align the method name between all drivers, renaming it from `parse_qsfp_dom_capability` to `parse_dom_capability`. Once the submodule was updated, the callers using the old nomenclature broke. This PR updates all callers to use the new naming convention. **- How I did it** Update the name of the function globally for all calls into the SFF-8436 driver. Note that the QSFP-DD driver still uses the old nomenclature and should be modified similarly. I will open a PR to handle this separately.
This commit is contained in:
parent
0e7c295fb3
commit
78bf8159e8
@ -698,7 +698,7 @@ class Sfp(SfpBase):
|
|||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
|
||||||
(offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
(offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
@ -279,7 +279,7 @@ class Sfp(SfpBase):
|
|||||||
QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
||||||
qsfp_version_compliance = int(
|
qsfp_version_compliance = int(
|
||||||
qsfp_version_compliance_raw[0], 16)
|
qsfp_version_compliance_raw[0], 16)
|
||||||
dom_capability = sfpi_obj.parse_qsfp_dom_capability(
|
dom_capability = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
if qsfp_version_compliance >= 0x08:
|
if qsfp_version_compliance >= 0x08:
|
||||||
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
||||||
|
@ -328,7 +328,7 @@ class Sfp(SfpBase):
|
|||||||
QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
||||||
qsfp_version_compliance = int(
|
qsfp_version_compliance = int(
|
||||||
qsfp_version_compliance_raw[0], 16)
|
qsfp_version_compliance_raw[0], 16)
|
||||||
dom_capability = sfpi_obj.parse_qsfp_dom_capability(
|
dom_capability = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
if qsfp_version_compliance >= 0x08:
|
if qsfp_version_compliance >= 0x08:
|
||||||
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
||||||
|
@ -311,7 +311,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
||||||
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return transceiver_dom_info_dict
|
return transceiver_dom_info_dict
|
||||||
|
@ -358,7 +358,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
||||||
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return transceiver_dom_info_dict
|
return transceiver_dom_info_dict
|
||||||
|
@ -305,7 +305,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
||||||
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return transceiver_dom_info_dict
|
return transceiver_dom_info_dict
|
||||||
|
|
||||||
|
@ -378,7 +378,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
||||||
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return transceiver_dom_info_dict
|
return transceiver_dom_info_dict
|
||||||
|
|
||||||
|
@ -870,7 +870,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
||||||
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -583,7 +583,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes(
|
||||||
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
sysfsfile_eeprom, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -513,7 +513,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes_via_ethtool(
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes_via_ethtool(
|
||||||
port_num, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
port_num, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return transceiver_dom_info_dict
|
return transceiver_dom_info_dict
|
||||||
|
|
||||||
|
@ -488,7 +488,7 @@ class SfpUtil(SfpUtilBase):
|
|||||||
# in SFF-8636 dom capability definitions evolving with the versions.
|
# in SFF-8636 dom capability definitions evolving with the versions.
|
||||||
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes_via_ethtool(port_num, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
qsfp_dom_capability_raw = self._read_eeprom_specific_bytes_via_ethtool(port_num, (offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return transceiver_dom_info_dict
|
return transceiver_dom_info_dict
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ class Sfp(SfpBase):
|
|||||||
QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
||||||
qsfp_version_compliance = int(
|
qsfp_version_compliance = int(
|
||||||
qsfp_version_compliance_raw[0], 16)
|
qsfp_version_compliance_raw[0], 16)
|
||||||
dom_capability = sfpi_obj.parse_qsfp_dom_capability(
|
dom_capability = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
if qsfp_version_compliance >= 0x08:
|
if qsfp_version_compliance >= 0x08:
|
||||||
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
||||||
|
@ -118,7 +118,7 @@ sff8436_parser = {
|
|||||||
'hardware_rev': [QSFP_INFO_OFFSET, 56, 2, 'parse_vendor_rev'],
|
'hardware_rev': [QSFP_INFO_OFFSET, 56, 2, 'parse_vendor_rev'],
|
||||||
'serial': [QSFP_INFO_OFFSET, 68, 16, 'parse_vendor_sn'],
|
'serial': [QSFP_INFO_OFFSET, 68, 16, 'parse_vendor_sn'],
|
||||||
'vendor_date': [QSFP_INFO_OFFSET, 84, 8, 'parse_vendor_date'],
|
'vendor_date': [QSFP_INFO_OFFSET, 84, 8, 'parse_vendor_date'],
|
||||||
'dom_capability': [QSFP_INFO_OFFSET, 92, 1, 'parse_qsfp_dom_capability'],
|
'dom_capability': [QSFP_INFO_OFFSET, 92, 1, 'parse_dom_capability'],
|
||||||
'dom_rev': [QSFP_DOM_OFFSET, 1, 1, 'parse_sfp_dom_rev'],
|
'dom_rev': [QSFP_DOM_OFFSET, 1, 1, 'parse_sfp_dom_rev'],
|
||||||
'ModuleThreshold': [QSFP_DOM_OFFSET1, 128, 24, 'parse_module_threshold_values'],
|
'ModuleThreshold': [QSFP_DOM_OFFSET1, 128, 24, 'parse_module_threshold_values'],
|
||||||
'ChannelThreshold': [QSFP_DOM_OFFSET1, 176, 16, 'parse_channel_threshold_values'],
|
'ChannelThreshold': [QSFP_DOM_OFFSET1, 176, 16, 'parse_channel_threshold_values'],
|
||||||
|
@ -122,7 +122,7 @@ sff8436_parser = {
|
|||||||
'hardware_rev': [QSFP_INFO_OFFSET, 56, 2, 'parse_vendor_rev'],
|
'hardware_rev': [QSFP_INFO_OFFSET, 56, 2, 'parse_vendor_rev'],
|
||||||
'serial': [QSFP_INFO_OFFSET, 68, 16, 'parse_vendor_sn'],
|
'serial': [QSFP_INFO_OFFSET, 68, 16, 'parse_vendor_sn'],
|
||||||
'vendor_date': [QSFP_INFO_OFFSET, 84, 8, 'parse_vendor_date'],
|
'vendor_date': [QSFP_INFO_OFFSET, 84, 8, 'parse_vendor_date'],
|
||||||
'dom_capability': [QSFP_INFO_OFFSET, 92, 1, 'parse_qsfp_dom_capability'],
|
'dom_capability': [QSFP_INFO_OFFSET, 92, 1, 'parse_dom_capability'],
|
||||||
'dom_rev': [QSFP_DOM_OFFSET, 1, 1, 'parse_sfp_dom_rev'],
|
'dom_rev': [QSFP_DOM_OFFSET, 1, 1, 'parse_sfp_dom_rev'],
|
||||||
'ModuleThreshold': [QSFP_DOM_OFFSET1, 128, 24, 'parse_module_threshold_values'],
|
'ModuleThreshold': [QSFP_DOM_OFFSET1, 128, 24, 'parse_module_threshold_values'],
|
||||||
'ChannelThreshold': [QSFP_DOM_OFFSET1, 176, 16, 'parse_channel_threshold_values'],
|
'ChannelThreshold': [QSFP_DOM_OFFSET1, 176, 16, 'parse_channel_threshold_values'],
|
||||||
|
@ -127,7 +127,7 @@ sff8436_parser = {
|
|||||||
'hardware_rev': [QSFP_INFO_OFFSET, 56, 2, 'parse_vendor_rev'],
|
'hardware_rev': [QSFP_INFO_OFFSET, 56, 2, 'parse_vendor_rev'],
|
||||||
'serial': [QSFP_INFO_OFFSET, 68, 16, 'parse_vendor_sn'],
|
'serial': [QSFP_INFO_OFFSET, 68, 16, 'parse_vendor_sn'],
|
||||||
'vendor_date': [QSFP_INFO_OFFSET, 84, 8, 'parse_vendor_date'],
|
'vendor_date': [QSFP_INFO_OFFSET, 84, 8, 'parse_vendor_date'],
|
||||||
'dom_capability': [QSFP_INFO_OFFSET, 92, 1, 'parse_qsfp_dom_capability'],
|
'dom_capability': [QSFP_INFO_OFFSET, 92, 1, 'parse_dom_capability'],
|
||||||
'dom_rev': [QSFP_DOM_OFFSET, 1, 1, 'parse_sfp_dom_rev'],
|
'dom_rev': [QSFP_DOM_OFFSET, 1, 1, 'parse_sfp_dom_rev'],
|
||||||
'ModuleThreshold': [QSFP_DOM_OFFSET1, 128, 24, 'parse_module_threshold_values'],
|
'ModuleThreshold': [QSFP_DOM_OFFSET1, 128, 24, 'parse_module_threshold_values'],
|
||||||
'ChannelThreshold': [QSFP_DOM_OFFSET1, 176, 16, 'parse_channel_threshold_values'],
|
'ChannelThreshold': [QSFP_DOM_OFFSET1, 176, 16, 'parse_channel_threshold_values'],
|
||||||
|
@ -436,7 +436,7 @@ class QSfp(SfpBase):
|
|||||||
# in SFF-8636 dom capability definitions evolving with the versions.
|
# in SFF-8636 dom capability definitions evolving with the versions.
|
||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@ -793,7 +793,7 @@ class QSfp(SfpBase):
|
|||||||
|
|
||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@ -844,7 +844,7 @@ class QSfp(SfpBase):
|
|||||||
|
|
||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@ -895,7 +895,7 @@ class QSfp(SfpBase):
|
|||||||
|
|
||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ class QSfp(SfpBase):
|
|||||||
# in SFF-8636 dom capability definitions evolving with the versions.
|
# in SFF-8636 dom capability definitions evolving with the versions.
|
||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes((offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -636,7 +636,7 @@ class Sfp(SfpBase):
|
|||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
|
||||||
(offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
(offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
@ -440,7 +440,7 @@ class SFP(SfpBase):
|
|||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qsfp_version_compliance_raw = self._read_eeprom_specific_bytes(QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
qsfp_version_compliance_raw = self._read_eeprom_specific_bytes(QSFP_VERSION_COMPLIANCE_OFFSET, QSFP_VERSION_COMPLIANCE_WIDTH)
|
||||||
qsfp_version_compliance = int(qsfp_version_compliance_raw[0], 16)
|
qsfp_version_compliance = int(qsfp_version_compliance_raw[0], 16)
|
||||||
dom_capability = sfpi_obj.parse_qsfp_dom_capability(qsfp_dom_capability_raw, 0)
|
dom_capability = sfpi_obj.parse_dom_capability(qsfp_dom_capability_raw, 0)
|
||||||
if qsfp_version_compliance >= 0x08:
|
if qsfp_version_compliance >= 0x08:
|
||||||
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
self.dom_temp_supported = dom_capability['data']['Temp_support']['value'] == 'On'
|
||||||
self.dom_volt_supported = dom_capability['data']['Voltage_support']['value'] == 'On'
|
self.dom_volt_supported = dom_capability['data']['Voltage_support']['value'] == 'On'
|
||||||
|
@ -414,7 +414,7 @@ class PddfSfp(SfpBase):
|
|||||||
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
|
qsfp_dom_capability_raw = self.__read_eeprom_specific_bytes(
|
||||||
(offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
(offset_xcvr + XCVR_DOM_CAPABILITY_OFFSET), XCVR_DOM_CAPABILITY_WIDTH)
|
||||||
if qsfp_dom_capability_raw is not None:
|
if qsfp_dom_capability_raw is not None:
|
||||||
qspf_dom_capability_data = sfpi_obj.parse_qsfp_dom_capability(
|
qspf_dom_capability_data = sfpi_obj.parse_dom_capability(
|
||||||
qsfp_dom_capability_raw, 0)
|
qsfp_dom_capability_raw, 0)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user