Fixed sfputil show eeprom information is empty on SFP ports. (#1145)

Signed-off-by: Wade He <chihen.he@gmail.com>
This commit is contained in:
wadelnn 2017-11-14 04:33:59 +08:00 committed by lguohan
parent aa09bdc2c2
commit 3e03df7a5e
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ class SfpUtil(SfpUtilBase):
@property @property
def qsfp_ports(self): def qsfp_ports(self):
return range(0, self.PORTS_IN_BLOCK + 1) return range(self.QSFP_PORT_START, self.PORTS_IN_BLOCK + 1)
@property @property
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):

View File

@ -102,7 +102,7 @@ class SfpUtil(SfpUtilBase):
@property @property
def qsfp_ports(self): def qsfp_ports(self):
return range(0, self.PORTS_IN_BLOCK + 1) return range(self.QSFP_PORT_START, self.PORTS_IN_BLOCK + 1)
@property @property
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):