Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[device/dx010] configuration port index start from 1 #1927

Merged
merged 6 commits into from Aug 16, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion device/celestica/x86_64-cel_seastone-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def __init__(self):

for x in range(self.PORT_START, self.PORT_END + 1):
if self.port_start == 1:
self.port_to_eeprom_mapping[x] = eeprom_path.format((x - 1) + 26)
self.port_to_eeprom_mapping[
x] = eeprom_path.format((x - 1) + 26)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line break looks like an accident to me. Can you fix it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5db2123

else:
self.port_to_eeprom_mapping[x] = eeprom_path.format(x + 26)
SfpUtilBase.__init__(self)
Expand Down Expand Up @@ -203,3 +204,6 @@ def reset(self, port_num):
reg_file.close()

return True

def get_transceiver_change_event(self, timeout=0):
raise NotImplementedError