"HYPERVISOR_OPT",
"IALLOCATOR_OPT",
"FORCE_OPT",
+ "NET_OPT",
"NOHDR_OPT",
"NOIPCHECK_OPT",
"NONICS_OPT",
help="Don't check that the instance's IP"
" is alive")
+NET_OPT = cli_option("--net",
+ help="NIC parameters", default=[],
+ dest="nics", action="append", type="identkeyval")
def _ParseArgs(argv, commands, aliases):
" single-disk configuration, when not using the --disk option,"
" in MiB unless a suffix is used",
default=None, type="unit", metavar="<size>"),
- cli_option("--net", help="NIC information",
- default=[], dest="nics",
- action="append",
- type="identkeyval"),
+ NET_OPT,
NONICS_OPT,
NWSYNC_OPT,
cli_option("--src-node", dest="src_node", help="Source node",
default=[], dest="disks",
action="append",
type="identkeyval"),
- cli_option("--net", help="NIC information",
- default=[], dest="nics",
- action="append",
- type="identkeyval"),
+ NET_OPT,
NONICS_OPT,
NWSYNC_OPT,
cli_option("--no-start", dest="start", default=True,
default=[], dest="disks",
action="append",
type="identkeyval"),
- cli_option("--net", help="NIC changes",
- default=[], dest="nics",
- action="append",
- type="identkeyval"),
+ NET_OPT,
SUBMIT_OPT,
],
"<instance>", "Alters the parameters of an instance"),