def subscribeToMacRange(self,newRange):
		if not isinstance(newRange,MacRange):
			raise Exception("Invalid instance type on subscribeToMacRange; must be MacRange")
		if newRange in self.subscribedMacRanges.all():
			raise Exception("Server is already subscribed to this range")
			
		self.subscribedMacRanges.add(newRange)
		self.autoSave()
dataset/ETHPy150Open fp7-ofelia/ocf/vt_manager/src/python/vt_manager/models/VTServer.py/VTServer.subscribeToMacRange/original