Skip to content

Commit

Permalink
Add get_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindmani-1 committed Nov 10, 2021
1 parent ee73c5b commit fc52cdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def __init__(self, index, sfp_type, eeprom_path,
def get_eeprom_path(self):
return self.eeprom_path

def get_name(self):
return "QSFP+ or later"

def read_eeprom(self, offset, num_bytes):
try:
fd = open(SFP_LOCK_FILE, "r")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def __init__(self, index, sfp_type, eeprom_path,
def get_eeprom_path(self):
return self.eeprom_path

def get_name(self):
return "QSFP+ or later"

def get_presence(self):
"""
Retrieves the presence of the sfp
Expand Down

0 comments on commit fc52cdb

Please sign in to comment.