Beispiel #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()		
Beispiel #2
0
	def configure(self, properties):
		Connector.configure(self, properties)
Beispiel #3
0
Datei: vpn.py Projekt: 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"])