mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-29 16:39:38 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user