Revision 7767bbf5 scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
635 | 635 |
return retcode |
636 | 636 |
|
637 | 637 |
|
638 |
def SetInstanceParms(opts, args): |
|
638 |
def SetInstanceParams(opts, args):
|
|
639 | 639 |
"""Modifies an instance. |
640 | 640 |
|
641 | 641 |
All parameters take effect only at the next restart of the instance. |
... | ... | |
661 | 661 |
else: |
662 | 662 |
hvm_boot_order = opts.hvm_boot_order |
663 | 663 |
|
664 |
op = opcodes.OpSetInstanceParms(instance_name=args[0], mem=opts.mem, |
|
665 |
vcpus=opts.vcpus, ip=opts.ip, |
|
666 |
bridge=opts.bridge, mac=opts.mac, |
|
667 |
kernel_path=opts.kernel_path, |
|
668 |
initrd_path=opts.initrd_path, |
|
669 |
hvm_boot_order=hvm_boot_order) |
|
664 |
op = opcodes.OpSetInstanceParams(instance_name=args[0], mem=opts.mem,
|
|
665 |
vcpus=opts.vcpus, ip=opts.ip,
|
|
666 |
bridge=opts.bridge, mac=opts.mac,
|
|
667 |
kernel_path=opts.kernel_path,
|
|
668 |
initrd_path=opts.initrd_path,
|
|
669 |
hvm_boot_order=hvm_boot_order)
|
|
670 | 670 |
result = SubmitOpCode(op) |
671 | 671 |
|
672 | 672 |
if result: |
... | ... | |
832 | 832 |
], |
833 | 833 |
"[-s|-p|-n NODE] <instance>", |
834 | 834 |
"Replaces all disks for the instance"), |
835 |
'modify': (SetInstanceParms, ARGS_ONE, |
|
835 |
'modify': (SetInstanceParams, ARGS_ONE,
|
|
836 | 836 |
[DEBUG_OPT, FORCE_OPT, |
837 | 837 |
cli_option("-m", "--memory", dest="mem", |
838 | 838 |
help="Memory size", |
Also available in: Unified diff