Revision 1c482bab lib/rapi/rlib2.py
b/lib/rapi/rlib2.py | ||
---|---|---|
280 | 280 |
return baserlib.SubmitJob([op]) |
281 | 281 |
|
282 | 282 |
|
283 |
class R_2_nodes_name_migrate(baserlib.R_Generic): |
|
284 |
"""/2/nodes/[node_name]/evacuate migrate. |
|
285 |
|
|
286 |
""" |
|
287 |
def POST(self): |
|
288 |
"""Migrate all primary instances from a node. |
|
289 |
|
|
290 |
""" |
|
291 |
node_name = self.items[0] |
|
292 |
live = bool(self._checkIntVariable("live", default=1)) |
|
293 |
|
|
294 |
op = opcodes.OpMigrateNode(node_name=node_name, live=live) |
|
295 |
|
|
296 |
return baserlib.SubmitJob([op]) |
|
297 |
|
|
298 |
|
|
283 | 299 |
class R_2_instances(baserlib.R_Generic): |
284 | 300 |
"""/2/instances resource. |
285 | 301 |
|
Also available in: Unified diff