- 'evacuate': (EvacuateNode, ARGS_FIXED(2),
- [DEBUG_OPT, FORCE_OPT],
- "[-f] <src> <dst>",
- "Relocate the secondary instances from the first node"
- " to the second one (only for instances with drbd disk template"
- ),
+ 'evacuate': (EvacuateNode, ARGS_ONE,
+ [DEBUG_OPT, FORCE_OPT,
+ make_option("-n", "--new-secondary", dest="dst_node",
+ help="New secondary node", metavar="NODE",
+ default=None),
+ make_option("-I", "--iallocator", metavar="<NAME>",
+ help="Select new secondary for the instance"
+ " automatically using the"
+ " <NAME> iallocator plugin",
+ default=None, type="string"),
+ ],
+ "[-f] {-I <iallocator> | -n <dst>} <node>",
+ "Relocate the secondary instances from a node"
+ " to other nodes (only for instances with drbd disk template)"),