Revision 26023ecd

b/lib/cli.py
51 51
  "FIELDS_OPT",
52 52
  "FORCE_OPT",
53 53
  "NOHDR_OPT",
54
  "NONICS_OPT",
54 55
  "NWSYNC_OPT",
55 56
  "SEP_OPT",
56 57
  "SUBMIT_OPT",
......
482 483
                               default=None, metavar="TEMPL",
483 484
                               choices=list(constants.DISK_TEMPLATES))
484 485

  
486
NONICS_OPT = cli_option("--no-nics", default=False, action="store_true",
487
                        help="Do not create any network cards for"
488
                        " the instance")
489

  
485 490

  
486 491
def _ParseArgs(argv, commands, aliases):
487 492
  """Parser for the command line arguments.
b/scripts/gnt-backup
231 231
             default=[], dest="nics",
232 232
             action="append",
233 233
             type="identkeyval"),
234
  cli_option("--no-nics", default=False, action="store_true",
235
             help="Do not create any network cards for the instance"),
234
  NONICS_OPT,
236 235
  NWSYNC_OPT,
237 236
  cli_option("--src-node", dest="src_node", help="Source node",
238 237
             metavar="<node>",
b/scripts/gnt-instance
1388 1388
             default=[], dest="nics",
1389 1389
             action="append",
1390 1390
             type="identkeyval"),
1391
  cli_option("--no-nics", default=False, action="store_true",
1392
             help="Do not create any network cards for the instance"),
1391
  NONICS_OPT,
1393 1392
  NWSYNC_OPT,
1394 1393
  cli_option("--no-start", dest="start", default=True,
1395 1394
             action="store_false", help="Don't start the instance after"

Also available in: Unified diff