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()
def configure(self, properties): Connector.configure(self, properties)
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"])