Exemple #1
0
 def __init__(self):
     PlatformBase.__init__(self)
     if self._is_host():
         self._chassis = Chassis()
         self._chassis.initialize_components()
     else:
         self._chassis = Chassis()
         self._chassis.initialize_psu()
         self._chassis.initialize_fan()
         self._chassis.initialize_eeprom()
 def __init__(self):
     PlatformBase.__init__(self)
     self._chassis = Chassis()
     self._chassis.initialize_psu()
     self._chassis.initialize_eeprom()
     if utils.is_host():
         self._chassis.initialize_components()
         self._chassis.initizalize_system_led()
     else:
         self._chassis.initialize_fan()
         self._chassis.initialize_thermals()
Exemple #3
0
    def __init__(self):
        # Initialize the JSON data
        self.pddf_data = pddfapi.PddfApi()
        with open('/usr/share/sonic/platform/pddf/pd-plugin.json') as pd:
            self.pddf_plugin_data = json.load(pd)

        if not self.pddf_data or not self.pddf_plugin_data:
            print("Error: PDDF JSON data is not loaded properly ... Exiting")
            raise ValueError

        PlatformBase.__init__(self)
        self._chassis = Chassis(self.pddf_data, self.pddf_plugin_data)
 def __init__(self):
     PlatformBase.__init__(self)
     self._chassis = Chassis()
Exemple #5
0
 def __init__(self):
     PlatformBase.__init__(self)
     # initialize chassis
     self._chassis = Chassis()
Exemple #6
0
 def __init__(self):
     PlatformBase.__init__(self)
     self._platform = getPlatform()
     self._chassis = Chassis(self._platform)
Exemple #7
0
 def __init__(self):
     PlatformBase.__init__(self)
     if DeviceDataManager.get_linecard_count() == 0:
         self._chassis = Chassis()
     else:
         self._chassis = ModularChassis()