Revision 9f0e6b37 lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
209 | 209 |
|
210 | 210 |
This is a single-node call. |
211 | 211 |
|
212 |
""" |
|
213 |
c = Client("instance_migrate", [instance.name, target, live]) |
|
212 |
@type node: string |
|
213 |
@param node: the node on which the instance is currently running |
|
214 |
@type instance: instance object |
|
215 |
@param instance: the instance definition |
|
216 |
@type target: string |
|
217 |
@param target: the target node name |
|
218 |
@type live: boolean |
|
219 |
@param live: whether the migration should be done live or not (the |
|
220 |
interpretation of this parameter is left to the hypervisor) |
|
221 |
|
|
222 |
""" |
|
223 |
c = Client("instance_migrate", [instance.ToDict(), target, live]) |
|
214 | 224 |
c.connect(node) |
215 | 225 |
c.run() |
216 | 226 |
return c.getresult().get(node, False) |
Also available in: Unified diff