Revision 93f1e606 lib/client/gnt_instance.py
b/lib/client/gnt_instance.py | ||
---|---|---|
1310 | 1310 |
if not (opts.nics or opts.disks or opts.disk_template or opts.hvparams or |
1311 | 1311 |
opts.beparams or opts.os or opts.osparams or opts.osparams_private |
1312 | 1312 |
or opts.offline_inst or opts.online_inst or opts.runtime_mem or |
1313 |
opts.new_primary_node): |
|
1313 |
opts.new_primary_node or opts.instance_communication is not None):
|
|
1314 | 1314 |
ToStderr("Please give at least one of the parameters.") |
1315 | 1315 |
return 1 |
1316 | 1316 |
|
... | ... | |
1356 | 1356 |
else: |
1357 | 1357 |
offline = None |
1358 | 1358 |
|
1359 |
instance_comm = opts.instance_communication |
|
1360 |
|
|
1359 | 1361 |
op = opcodes.OpInstanceSetParams(instance_name=args[0], |
1360 | 1362 |
nics=nics, |
1361 | 1363 |
disks=disks, |
... | ... | |
1375 | 1377 |
wait_for_sync=opts.wait_for_sync, |
1376 | 1378 |
offline=offline, |
1377 | 1379 |
conflicts_check=opts.conflicts_check, |
1378 |
ignore_ipolicy=opts.ignore_ipolicy) |
|
1380 |
ignore_ipolicy=opts.ignore_ipolicy, |
|
1381 |
instance_communication=instance_comm) |
|
1379 | 1382 |
|
1380 | 1383 |
# even if here we process the result, we allow submit only |
1381 | 1384 |
result = SubmitOrSend(op, opts) |
... | ... | |
1573 | 1576 |
OSPARAMS_OPT, OSPARAMS_PRIVATE_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT, |
1574 | 1577 |
OFFLINE_INST_OPT, ONLINE_INST_OPT, IGNORE_IPOLICY_OPT, RUNTIME_MEM_OPT, |
1575 | 1578 |
NOCONFLICTSCHECK_OPT, NEW_PRIMARY_OPT, HOTPLUG_OPT, |
1576 |
HOTPLUG_IF_POSSIBLE_OPT], |
|
1579 |
HOTPLUG_IF_POSSIBLE_OPT, INSTANCE_COMMUNICATION_OPT],
|
|
1577 | 1580 |
"<instance>", "Alters the parameters of an instance"), |
1578 | 1581 |
"shutdown": ( |
1579 | 1582 |
GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()], |
Also available in: Unified diff