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:
parent
aa09bdc2c2
commit
3e03df7a5e
@ -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):
|
||||||
|
@ -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):
|
||||||
|
Reference in New Issue
Block a user