Revision 4fbc93dd
b/lib/cli.py | ||
---|---|---|
71 | 71 |
"MC_OPT", |
72 | 72 |
"NET_OPT", |
73 | 73 |
"NEW_SECONDARY_OPT", |
74 |
"NIC_PARAMS_OPT", |
|
74 | 75 |
"NODE_LIST_OPT", |
75 | 76 |
"NODE_PLACEMENT_OPT", |
76 | 77 |
"NOHDR_OPT", |
... | ... | |
727 | 728 |
help="Comma-separated list of hypervisors", |
728 | 729 |
type="string", default=None) |
729 | 730 |
|
731 |
NIC_PARAMS_OPT = cli_option("-N", "--nic-parameters", dest="nicparams", |
|
732 |
type="keyval", default={}, |
|
733 |
help="NIC parameters") |
|
734 |
|
|
730 | 735 |
|
731 | 736 |
def _ParseArgs(argv, commands, aliases): |
732 | 737 |
"""Parser for the command line arguments. |
b/scripts/gnt-cluster | ||
---|---|---|
622 | 622 |
ENABLED_HV_OPT, |
623 | 623 |
HVLIST_OPT, |
624 | 624 |
BACKEND_OPT, |
625 |
cli_option("-N", "--nic-parameters", dest="nicparams", |
|
626 |
type="keyval", default={}, |
|
627 |
help="NIC parameters"), |
|
625 |
NIC_PARAMS_OPT, |
|
628 | 626 |
cli_option("-C", "--candidate-pool-size", |
629 | 627 |
default=constants.MASTER_POOL_SIZE_DEFAULT, |
630 | 628 |
help="Set the candidate pool size", |
... | ... | |
712 | 710 |
ENABLED_HV_OPT, |
713 | 711 |
HVLIST_OPT, |
714 | 712 |
BACKEND_OPT, |
715 |
cli_option("-N", "--nic-parameters", dest="nicparams", |
|
716 |
type="keyval", default={}, |
|
717 |
help="NIC parameters"), |
|
713 |
NIC_PARAMS_OPT, |
|
718 | 714 |
cli_option("-C", "--candidate-pool-size", default=None, |
719 | 715 |
help="Set the candidate pool size", |
720 | 716 |
dest="candidate_pool_size", type="int"), |
Also available in: Unified diff