Skip to content

Commit

Permalink
Fixed sfputil show eeprom information is empty on SFP ports. (#1145)
Browse files Browse the repository at this point in the history
Signed-off-by: Wade He <chihen.he@gmail.com>
  • Loading branch information
wadelnn authored and lguohan committed Nov 13, 2017
1 parent aa09bdc commit 3e03df7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def port_end(self):

@property
def qsfp_ports(self):
return range(0, self.PORTS_IN_BLOCK + 1)
return range(self.QSFP_PORT_START, self.PORTS_IN_BLOCK + 1)

@property
def port_to_eeprom_mapping(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def port_end(self):

@property
def qsfp_ports(self):
return range(0, self.PORTS_IN_BLOCK + 1)
return range(self.QSFP_PORT_START, self.PORTS_IN_BLOCK + 1)

@property
def port_to_eeprom_mapping(self):
Expand Down

0 comments on commit 3e03df7

Please sign in to comment.