[devices]: add stubs for new API in SfpUtilBase for all devices (#2038)

This commit is contained in:
Kebo Liu 2018-09-13 00:40:29 +08:00 committed by lguohan
parent 5d23a43c4c
commit ac7e06debd
35 changed files with 279 additions and 5 deletions

View File

@ -226,3 +226,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -148,3 +148,11 @@ class SfpUtil(SfpUtilBase):
@property @property
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping return self._port_to_eeprom_mapping
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -125,3 +125,11 @@ class sfputil(SfpUtilBase):
@property @property
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping return self._port_to_eeprom_mapping
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -213,3 +213,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -213,3 +213,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -201,3 +201,11 @@ class SfpUtil(SfpUtilBase):
def reset(self, port_num): def reset(self, port_num):
raise NotImplementedError raise NotImplementedError
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -70,3 +70,11 @@ class SfpUtil(SfpUtilBase):
@property @property
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping return self._port_to_eeprom_mapping
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -125,4 +125,10 @@ class SfpUtil(SfpUtilBase):
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping return self._port_to_eeprom_mapping
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -132,3 +132,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -135,4 +135,10 @@ class SfpUtil(SfpUtilBase):
(status, output) = commands.getstatusoutput (mod_rst_cmd) (status, output) = commands.getstatusoutput (mod_rst_cmd)
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -152,4 +152,10 @@ class SfpUtil(SfpUtilBase):
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping return self._port_to_eeprom_mapping
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -158,3 +158,11 @@ class SfpUtil(SfpUtilBase):
return False return False
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -173,3 +173,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -431,3 +431,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -190,3 +190,11 @@ class SfpUtil(SfpUtilBase):
status = self.pci_set_value(self.BASE_RES_PATH, reg_value, port_offset) status = self.pci_set_value(self.BASE_RES_PATH, reg_value, port_offset)
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -201,3 +201,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -173,3 +173,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -173,3 +173,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -86,3 +86,11 @@ class SfpUtil(SfpUtilBase):
return False return False
return False return False
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -145,3 +145,11 @@ class SfpUtil(SfpUtilBase):
val_file.close() val_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -277,3 +277,11 @@ class SfpUtil(SfpUtilBase):
val_file.close() val_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -254,3 +254,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -280,3 +280,11 @@ class SfpUtil(SfpUtilBase):
val_file.close() val_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -185,3 +185,11 @@ class SfpUtil(SfpUtilBase):
gpio_file.close() gpio_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -288,3 +288,11 @@ class SfpUtil(SfpUtilBase):
val_file.close() val_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -258,3 +258,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -291,3 +291,11 @@ class SfpUtil(SfpUtilBase):
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -298,3 +298,11 @@ class SfpUtil(SfpUtilBase):
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -177,3 +177,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -207,3 +207,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -217,3 +217,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -125,3 +125,11 @@ class sfputil(SfpUtilBase):
@property @property
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping return self._port_to_eeprom_mapping
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -180,3 +180,11 @@ class SfpUtil(SfpUtilBase):
reg_file.close() reg_file.close()
return True return True
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -168,4 +168,12 @@ class SfpUtil(SfpUtilBase):
def port_to_eeprom_mapping(self): def port_to_eeprom_mapping(self):
return self._port_to_eeprom_mapping return self._port_to_eeprom_mapping
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError

View File

@ -203,3 +203,11 @@ class SfpUtil(SfpUtilBase):
sfp_data['dom'] = sfpd_obj.get_data_pretty() sfp_data['dom'] = sfpd_obj.get_data_pretty()
return sfp_data return sfp_data
def get_transceiver_change_event(self):
"""
TODO: This function need to be implemented
when decide to support monitoring SFP(Xcvrd)
on this platform.
"""
raise NotImplementedError