Beispiel #1
0
	def setPresent(self,present):
		self.Set(INTF_NAME,'present',present)
		if (present == "True"):
			self.Set(INTF_NAME,'present',present)
		else:
			data = FRUS[self.name.replace(System.INVENTORY_ROOT,"<inventory_root>")]
			if (data.has_key('present') == False):
				data['present'] = 'False'
			if (data.has_key('fault') == False):
				data['fault'] = 'False'
			if (data.has_key('version') == False):
				data['version'] = ''
			self.properties[INTF_NAME] = {}
			self.SetMultiple(INTF_NAME,data)

		PropertyCacher.save(self.name, INTF_NAME, self.properties)
Beispiel #2
0
	def setFault(self,fault):
		self.Set(INTF_NAME,'fault',fault)
		PropertyCacher.save(self.name, INTF_NAME, self.properties)
Beispiel #3
0
	def update(self,data):
		self.SetMultiple(INTF_NAME,data)
		PropertyCacher.save(self.name, INTF_NAME, self.properties)
Beispiel #4
0
 def setFault(self, fault):
     self.Set(INTF_NAME, 'fault', fault)
     PropertyCacher.save(self.name, INTF_NAME, self.properties)
Beispiel #5
0
 def setPresent(self, present):
     self.Set(INTF_NAME, 'present', present)
     PropertyCacher.save(self.name, INTF_NAME, self.properties)
Beispiel #6
0
 def update(self, data):
     self.SetMultiple(INTF_NAME, data)
     PropertyCacher.save(self.name, INTF_NAME, self.properties)
Beispiel #7
0
 def setPresent(self, present):
     self.Set(INTF_NAME, 'present', present)
     PropertyCacher.save(self.name, INTF_NAME, self.properties)
Beispiel #8
0
 def setManufacturer(self, Manufacturer):
     self.Set(INTF_NAME, 'Manufacturer', Manufacturer)
     PropertyCacher.save(self.name, INTF_NAME, self.properties)