Revision aafee533 lib/cli.py

b/lib/cli.py
143 143
  "POWER_DELAY_OPT",
144 144
  "PREALLOC_WIPE_DISKS_OPT",
145 145
  "PRIMARY_IP_VERSION_OPT",
146
  "PRIMARY_ONLY_OPT",
146 147
  "PRIORITY_OPT",
147 148
  "RAPI_CERT_OPT",
148 149
  "READD_OPT",
......
152 153
  "RESERVED_LVS_OPT",
153 154
  "ROMAN_OPT",
154 155
  "SECONDARY_IP_OPT",
156
  "SECONDARY_ONLY_OPT",
155 157
  "SELECT_OS_OPT",
156 158
  "SEP_OPT",
157 159
  "SHOWCMD_OPT",
......
1210 1212
                             help="Perform but do not record the change"
1211 1213
                             " in the configuration")
1212 1214

  
1215
PRIMARY_ONLY_OPT = cli_option("-p", "--primary-only",
1216
                              default=False, action="store_true",
1217
                              help="Evacuate primary instances only")
1218

  
1219
SECONDARY_ONLY_OPT = cli_option("-s", "--secondary-only",
1220
                                default=False, action="store_true",
1221
                                help="Evacuate secondary instances only"
1222
                                     " (applies only to internally mirrored"
1223
                                     " disk templates, e.g. %s)" %
1224
                                     utils.CommaJoin(constants.DTS_INT_MIRROR))
1225

  
1213 1226

  
1214 1227
#: Options provided by all commands
1215 1228
COMMON_OPTS = [DEBUG_OPT]

Also available in: Unified diff