Revision 6d4a1656 lib/cli.py
b/lib/cli.py | ||
---|---|---|
79 | 79 |
"MASTER_NETDEV_OPT", |
80 | 80 |
"MC_OPT", |
81 | 81 |
"NET_OPT", |
82 |
"NEW_CLUSTER_CERT_OPT", |
|
83 |
"NEW_HMAC_KEY_OPT", |
|
84 |
"NEW_RAPI_CERT_OPT", |
|
82 | 85 |
"NEW_SECONDARY_OPT", |
83 | 86 |
"NIC_PARAMS_OPT", |
84 | 87 |
"NODE_LIST_OPT", |
... | ... | |
102 | 105 |
"OFFLINE_OPT", |
103 | 106 |
"OS_OPT", |
104 | 107 |
"OS_SIZE_OPT", |
108 |
"RAPI_CERT_OPT", |
|
105 | 109 |
"READD_OPT", |
106 | 110 |
"REBOOT_TYPE_OPT", |
107 | 111 |
"SECONDARY_IP_OPT", |
... | ... | |
860 | 864 |
help="Release the locks on the secondary" |
861 | 865 |
" node(s) early") |
862 | 866 |
|
867 |
NEW_CLUSTER_CERT_OPT = cli_option("--new-cluster-certificate", |
|
868 |
dest="new_cluster_cert", |
|
869 |
default=False, action="store_true", |
|
870 |
help="Generate a new cluster certificate") |
|
871 |
|
|
872 |
RAPI_CERT_OPT = cli_option("--rapi-certificate", dest="rapi_cert", |
|
873 |
default=None, |
|
874 |
help="File containing new RAPI certificate") |
|
875 |
|
|
876 |
NEW_RAPI_CERT_OPT = cli_option("--new-rapi-certificate", dest="new_rapi_cert", |
|
877 |
default=None, action="store_true", |
|
878 |
help=("Generate a new self-signed RAPI" |
|
879 |
" certificate")) |
|
880 |
|
|
881 |
NEW_HMAC_KEY_OPT = cli_option("--new-hmac-key", dest="new_hmac_key", |
|
882 |
default=False, action="store_true", |
|
883 |
help="Create a new HMAC key") |
|
884 |
|
|
863 | 885 |
|
864 | 886 |
def _ParseArgs(argv, commands, aliases): |
865 | 887 |
"""Parser for the command line arguments. |
Also available in: Unified diff