예제 #1
0
	def configure(self, properties):
		if self.state != State.CREATED:
			fault.check(not "network_type" in properties, "Cannot change type of external network with prepared connections: %s", self.name)
			fault.check(not "network_group" in properties, "Cannot change group of external network with prepared connections: %s", self.name)
		Connector.configure(self, properties)
		if self.getNetworkGroup() == "auto":
			self.setNetworkGroup(None)
		self.save()		
예제 #2
0
파일: vpn.py 프로젝트: joanmarkt/ToMaTo
	def configure(self, properties):
		Connector.configure(self, properties)
예제 #3
0
파일: vpn.py 프로젝트: m3z/ToMaTo
	def configure(self, properties):
		Connector.configure(self, properties)
		if "external_access" in properties:
			self.setExternalAccess(properties["external_access"])
		if "mode" in properties:
			self.setMode(properties["mode"])