Revision 460d22be

b/lib/cli.py
82 82
  "NODE_PLACEMENT_OPT",
83 83
  "NOHDR_OPT",
84 84
  "NOIPCHECK_OPT",
85
  "NONAMECHECK_OPT",
85 86
  "NOLVM_STORAGE_OPT",
86 87
  "NOMODIFY_ETCHOSTS_OPT",
87 88
  "NOMODIFY_SSH_SETUP_OPT",
......
597 598
                           help="Don't check that the instance's IP"
598 599
                           " is alive")
599 600

  
601
NONAMECHECK_OPT = cli_option("--no-name-check", dest="name_check",
602
                             default=True, action="store_false",
603
                             help="Don't check that the instance's name"
604
                             " is resolvable")
605

  
600 606
NET_OPT = cli_option("--net",
601 607
                     help="NIC parameters", default=[],
602 608
                     dest="nics", action="append", type="identkeyval")
......
1467 1473
                                nics=nics,
1468 1474
                                pnode=pnode, snode=snode,
1469 1475
                                ip_check=opts.ip_check,
1476
                                name_check=opts.name_check,
1470 1477
                                wait_for_sync=opts.wait_for_sync,
1471 1478
                                file_storage_dir=opts.file_storage_dir,
1472 1479
                                file_driver=opts.file_driver,
b/lib/rapi/rlib2.py
464 464
      nics=nics,
465 465
      start=fn('start', True),
466 466
      ip_check=fn('ip_check', True),
467
      name_check=fn('name_check', True),
467 468
      wait_for_sync=True,
468 469
      hypervisor=fn('hypervisor', None),
469 470
      hvparams=hvparams,
b/scripts/gnt-backup
137 137
  SRC_DIR_OPT,
138 138
  SRC_NODE_OPT,
139 139
  NOIPCHECK_OPT,
140
  NONAMECHECK_OPT,
140 141
  IALLOCATOR_OPT,
141 142
  FILESTORE_DIR_OPT,
142 143
  FILESTORE_DRIVER_OPT,
b/scripts/gnt-instance
318 318

  
319 319
  """
320 320
  return GenericInstanceCreate(constants.INSTANCE_CREATE, opts, args)
321
  return 0
322 321

  
323 322

  
324 323
def BatchCreate(opts, args):
......
357 356
                    "nics": None,
358 357
                    "start": True,
359 358
                    "ip_check": True,
359
                    "name_check": True,
360 360
                    "hypervisor": None,
361 361
                    "hvparams": {},
362 362
                    "file_storage_dir": None,
......
453 453
                                  nics=tmp_nics,
454 454
                                  start=specs['start'],
455 455
                                  ip_check=specs['ip_check'],
456
                                  name_check=specs['name_check'],
456 457
                                  wait_for_sync=True,
457 458
                                  iallocator=specs['iallocator'],
458 459
                                  hypervisor=hypervisor,
......
1280 1281
  NET_OPT,
1281 1282
  NODE_PLACEMENT_OPT,
1282 1283
  NOIPCHECK_OPT,
1284
  NONAMECHECK_OPT,
1283 1285
  NONICS_OPT,
1284 1286
  NOSTART_OPT,
1285 1287
  NWSYNC_OPT,

Also available in: Unified diff