"FIELDS_OPT",
"FORCE_OPT",
"NOHDR_OPT",
+ "NONICS_OPT",
"NWSYNC_OPT",
"SEP_OPT",
"SUBMIT_OPT",
default=None, metavar="TEMPL",
choices=list(constants.DISK_TEMPLATES))
+NONICS_OPT = cli_option("--no-nics", default=False, action="store_true",
+ help="Do not create any network cards for"
+ " the instance")
+
def _ParseArgs(argv, commands, aliases):
"""Parser for the command line arguments.
default=[], dest="nics",
action="append",
type="identkeyval"),
- cli_option("--no-nics", default=False, action="store_true",
- help="Do not create any network cards for the instance"),
+ NONICS_OPT,
NWSYNC_OPT,
cli_option("--src-node", dest="src_node", help="Source node",
metavar="<node>",
default=[], dest="nics",
action="append",
type="identkeyval"),
- cli_option("--no-nics", default=False, action="store_true",
- help="Do not create any network cards for the instance"),
+ NONICS_OPT,
NWSYNC_OPT,
cli_option("--no-start", dest="start", default=True,
action="store_false", help="Don't start the instance after"