Revision 3f1e065d
b/lib/client/gnt_debug.py | ||
---|---|---|
553 | 553 |
], |
554 | 554 |
"<op_list_file...>", "Submits jobs built from json files" |
555 | 555 |
" containing a list of serialized opcodes"), |
556 |
'allocator': ( |
|
556 |
'iallocator': (
|
|
557 | 557 |
TestAllocator, [ArgUnknown(min=1)], |
558 | 558 |
[cli_option("--dir", dest="direction", default=constants.IALLOCATOR_DIR_IN, |
559 | 559 |
choices=list(constants.VALID_IALLOCATOR_DIRECTIONS), |
... | ... | |
595 | 595 |
"[--interval N]", "Show a list of locks in the master daemon"), |
596 | 596 |
} |
597 | 597 |
|
598 |
#: dictionary with aliases for commands |
|
599 |
aliases = { |
|
600 |
"allocator": "iallocator", |
|
601 |
} |
|
598 | 602 |
|
599 | 603 |
def Main(): |
600 |
return GenericMain(commands) |
|
604 |
return GenericMain(commands, aliases=aliases) |
b/man/gnt-debug.rst | ||
---|---|---|
19 | 19 |
COMMANDS |
20 | 20 |
-------- |
21 | 21 |
|
22 |
ALLOCATOR |
|
23 |
~~~~~~~~~ |
|
22 |
IALLOCATOR
|
|
23 |
~~~~~~~~~~
|
|
24 | 24 |
|
25 |
**allocator** [--debug] [--dir *DIRECTION*] {--algorithm |
|
25 |
**iallocator** [--debug] [--dir *DIRECTION*] {--algorithm
|
|
26 | 26 |
*ALLOCATOR* } [--mode *MODE*] [--mem *MEMORY*] [--disks *DISKS*] |
27 | 27 |
[--disk-template *TEMPLATE*] [--nics *NICS*] [--os-type *OS*] |
28 | 28 |
[--vcpus *VCPUS*] [--tags *TAGS*] {*instance*} |
Also available in: Unified diff