mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.116.4 (4177df97ZOvl759Lo38Gv7CY081ZCA)
Add resource control parameter to migrate.
This commit is contained in:
1 parent
e1ab5a1d0d
commit
4a22a3ffb9
9 files changed
+30
-16
No files matched your search
@@ -244,11 +244,12 @@ class Xend:
|
||||
{'op' : 'save',
|
||||
'file' : filename })
|
||||
|
||||
def xend_domain_migrate(self, id, dst, live=0):
|
||||
def xend_domain_migrate(self, id, dst, live=0, resource=0):
|
||||
return self.xendPost(self.domainurl(id),
|
||||
{'op' : 'migrate',
|
||||
'destination': dst,
|
||||
'live' : live })
|
||||
'live' : live,
|
||||
'resource' : resource })
|
||||
|
||||
def xend_domain_pincpu(self, id, cpu):
|
||||
return self.xendPost(self.domainurl(id),
|
||||
|
||||