From 2a8b61a58799882b2a221b21f5bc46d933ac43be Mon Sep 17 00:00:00 2001 From: lkunjumon Date: Mon, 31 May 2021 15:49:18 +0530 Subject: [PATCH] Adding sfp ports support --- .../db98cx8540/sonic_platform/chassis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/marvell-arm64/sonic-platform-db98cx8540-16cd/db98cx8540/sonic_platform/chassis.py b/platform/marvell-arm64/sonic-platform-db98cx8540-16cd/db98cx8540/sonic_platform/chassis.py index 4f438e685..083464118 100644 --- a/platform/marvell-arm64/sonic-platform-db98cx8540-16cd/db98cx8540/sonic_platform/chassis.py +++ b/platform/marvell-arm64/sonic-platform-db98cx8540-16cd/db98cx8540/sonic_platform/chassis.py @@ -160,11 +160,12 @@ def __init__(self): for index in range(self.SFP_PORT_START, self.SFP_PORT_END+1): i2cdev = 0 + port=index-1 port_eeprom_path = eeprom_path profile = sfputil_profiles[self._port_profile] if not os.path.exists(port_eeprom_path): logger.log_info(" DEBUG - path %s -- did not exist " % port_eeprom_path ) - if index in profile: + if port in profile: sfp_node = Sfp(index, 'QSFP', port_eeprom_path, i2cdev ) self._sfp_list.append(sfp_node) self.sfp_event_initialized = False