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

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
device
accton
x86_64-accton_as5712_54x-r0/plugins
x86_64-accton_as7116_54x-r0/plugins
x86_64-accton_as7212_54x-r0/plugins
x86_64-accton_as7312_54x-r0/plugins
x86_64-accton_as7312_54xs-r0/plugins
x86_64-accton_as7326_56x-r0/plugins
x86_64-accton_as7512_32x-r0/plugins
x86_64-accton_as7712_32x-r0/plugins
x86_64-accton_as7716_32x-r0/plugins
x86_64-accton_as7716_32xb-r0/plugins
x86_64-accton_as7816_64x-r0/plugins
centec/x86_64-centec_e582_48x6q-r0/plugins
dell
x86_64-dell_s6000_s1220-r0/plugins
x86_64-dell_s6100_c2538-r0/plugins
x86_64-dellemc_z9264f_c3538-r0/plugins
delta
x86_64-delta_ag5648-r0/plugins
x86_64-delta_ag9032v1-r0/plugins
x86_64-delta_ag9064-r0/plugins
x86_64-delta_et-6248brb-r0/plugins
ingrasys
x86_64-ingrasys_s8810_32q-r0/plugins
x86_64-ingrasys_s8900_54xc-r0/plugins
x86_64-ingrasys_s8900_64xc-r0/plugins
x86_64-ingrasys_s9100-r0/plugins
x86_64-ingrasys_s9130_32x-r0/plugins
x86_64-ingrasys_s9180_32x-r0/plugins
x86_64-ingrasys_s9200_64x-r0/plugins
x86_64-ingrasys_s9230_64x-r0/plugins
x86_64-ingrasys_s9280_64x-r0/plugins
inventec
x86_64-inventec_d7032q28b-r0/plugins
x86_64-inventec_d7054q28b-r0/plugins
x86_64-inventec_d7264q28b-r0/plugins
marvell/x86_64-marvell_slm5401_54x-r0/plugins
mitac/x86_64-mitac_ly1200_b32h0_c3-r0/plugins
quanta/x86_64-quanta_ix1b_32x-r0/plugins
wnc/x86_64-wnc_osw1800-r0/plugins

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