Revision eb28ecf6 lib/client/gnt_instance.py

b/lib/client/gnt_instance.py
1377 1377

  
1378 1378
# this is defined separately due to readability only
1379 1379
add_opts = [
1380
  BACKEND_OPT,
1381
  DISK_OPT,
1382
  DISK_TEMPLATE_OPT,
1383
  FILESTORE_DIR_OPT,
1384
  FILESTORE_DRIVER_OPT,
1385
  HYPERVISOR_OPT,
1386
  IALLOCATOR_OPT,
1387
  NET_OPT,
1388
  NODE_PLACEMENT_OPT,
1389
  NOIPCHECK_OPT,
1390
  NONAMECHECK_OPT,
1391
  NONICS_OPT,
1392 1380
  NOSTART_OPT,
1393
  NWSYNC_OPT,
1394
  OSPARAMS_OPT,
1395 1381
  OS_OPT,
1396 1382
  FORCE_VARIANT_OPT,
1397 1383
  NO_INSTALL_OPT,
1398
  OS_SIZE_OPT,
1399
  SUBMIT_OPT,
1400
  DRY_RUN_OPT,
1401
  PRIORITY_OPT,
1402 1384
  ]
1403 1385

  
1404 1386
commands = {
1405 1387
  'add': (
1406
    AddInstance, [ArgHost(min=1, max=1)], add_opts,
1388
    AddInstance, [ArgHost(min=1, max=1)], COMMON_CREATE_OPTS + add_opts,
1407 1389
    "[...] -t disk-type -n node[:secondary-node] -o os-type <name>",
1408 1390
    "Creates and adds a new instance to the cluster"),
1409 1391
  'batch-create': (

Also available in: Unified diff