Sorry, I found example in the source. :-(
Hi!
I need virDomain::Restore function from python.
dom = conn.listDomainsID()
for id in dom:
domain = conn.lookupByID(id)
print dir(domain)
['ID', 'OSType', 'UUID', 'UUIDString', 'XMLDesc', '__del__',
'__doc__', '__init__', '__module__', '_conn', '_o', 'abortJob',
'attachDevice', 'attachDeviceFlags', 'autostart', 'blkioParameters',
'blockInfo', 'blockPeek', 'blockStats', 'connect', 'coreDump',
'create', 'createWithFlags', 'destroy', 'detachDevice',
'detachDeviceFlags', 'hasCurrentSnapshot', 'hasManagedSaveImage',
'info', 'injectNMI', 'interfaceStats', 'isActive', 'isPersistent',
'isUpdated', 'jobInfo', 'managedSave', 'managedSaveRemove',
'maxMemory', 'maxVcpus', 'memoryParameters', 'memoryPeek',
'memoryStats', 'migrate', 'migrate2', 'migrateSetMaxDowntime',
'migrateSetMaxSpeed', 'migrateToURI', 'migrateToURI2', 'name',
'openConsole', 'pinVcpu', 'reboot', 'resume', 'revertToSnapshot',
'save', 'schedulerParameters', 'schedulerParametersFlags',
'schedulerType', 'screenshot', 'setAutostart', 'setBlkioParameters',
'setMaxMemory', 'setMemory', 'setMemoryFlags', 'setMemoryParameters',
'setSchedulerParameters', 'setSchedulerParametersFlags', 'setVcpus',
'setVcpusFlags', 'shutdown', 'snapshotCreateXML', 'snapshotCurrent',
'snapshotListNames', 'snapshotLookupByName', 'snapshotNum', 'state',
'suspend', 'undefine', 'updateDeviceFlags', 'vcpus', 'vcpusFlags']
Where is restore?
Thx
--
Zoli
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list