1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

user can now clone instances, admin can specify user quotas (instances,cpus,memory)

user can only select predefined instance names, mac and disk names are selected automatically
This commit is contained in:
Jan Krcmar 2016-03-23 09:00:42 +01:00
parent de5cb19913
commit 317c2a85ae
9 changed files with 221 additions and 54 deletions

View file

@ -697,9 +697,10 @@ class wvmInstance(wvmConnect):
'description': clone_data.get('clone-description', ''),
}
self._set_options(tree, options)
self._defineXML(ElementTree.tostring(tree))
return self.get_instance(clone_data['name']).UUIDString()
def change_network(self, network_data):
xml = self._XMLDesc(VIR_DOMAIN_XML_SECURE)
tree = ElementTree.fromstring(xml)