Пример #1
0
	def __init__(self,bus,name,is_fru,fru_type):		
		Openbmc.DbusProperties.__init__(self)
		dbus.service.Object.__init__(self,bus,name)

		self.name = name
		
		## this will load properties from cache
		PropertyCacher.load(name,INTF_NAME,self.properties)
		data = {'is_fru': is_fru, 'fru_type': fru_type, 'present': 'Inactive', 'fault': 'None'}
		self.SetMultiple(INTF_NAME,data)
		self.ObjectAdded(name,INTF_NAME)		
		self.ObjectAdded(name,INTF_NAME)		
Пример #2
0
    def __init__(self, bus, name, is_fru, fru_type):
        Openbmc.DbusProperties.__init__(self)
        dbus.service.Object.__init__(self, bus, name)

        self.name = name

        ## this will load properties from cache
        PropertyCacher.load(name, INTF_NAME, self.properties)
        data = {
            'is_fru': is_fru,
            'fru_type': fru_type,
            'present': 'Inactive',
            'fault': 'None'
        }
        self.SetMultiple(INTF_NAME, data)
        self.ObjectAdded(name, INTF_NAME)
        self.ObjectAdded(name, INTF_NAME)
Пример #3
0
	def update(self,data):
		self.SetMultiple(INTF_NAME,data)
		PropertyCacher.save(self.name,INTF_NAME,self.properties)
Пример #4
0
 def update(self, data):
     self.SetMultiple(INTF_NAME, data)
     PropertyCacher.save(self.name, INTF_NAME, self.properties)