Revision 7d3a9fab
b/lib/cli.py | ||
---|---|---|
57 | 57 |
"HYPERVISOR_OPT", |
58 | 58 |
"IALLOCATOR_OPT", |
59 | 59 |
"FORCE_OPT", |
60 |
"NET_OPT", |
|
60 | 61 |
"NOHDR_OPT", |
61 | 62 |
"NOIPCHECK_OPT", |
62 | 63 |
"NONICS_OPT", |
... | ... | |
539 | 540 |
help="Don't check that the instance's IP" |
540 | 541 |
" is alive") |
541 | 542 |
|
543 |
NET_OPT = cli_option("--net", |
|
544 |
help="NIC parameters", default=[], |
|
545 |
dest="nics", action="append", type="identkeyval") |
|
542 | 546 |
|
543 | 547 |
|
544 | 548 |
def _ParseArgs(argv, commands, aliases): |
b/scripts/gnt-backup | ||
---|---|---|
225 | 225 |
" single-disk configuration, when not using the --disk option," |
226 | 226 |
" in MiB unless a suffix is used", |
227 | 227 |
default=None, type="unit", metavar="<size>"), |
228 |
cli_option("--net", help="NIC information", |
|
229 |
default=[], dest="nics", |
|
230 |
action="append", |
|
231 |
type="identkeyval"), |
|
228 |
NET_OPT, |
|
232 | 229 |
NONICS_OPT, |
233 | 230 |
NWSYNC_OPT, |
234 | 231 |
cli_option("--src-node", dest="src_node", help="Source node", |
b/scripts/gnt-instance | ||
---|---|---|
1378 | 1378 |
default=[], dest="disks", |
1379 | 1379 |
action="append", |
1380 | 1380 |
type="identkeyval"), |
1381 |
cli_option("--net", help="NIC information", |
|
1382 |
default=[], dest="nics", |
|
1383 |
action="append", |
|
1384 |
type="identkeyval"), |
|
1381 |
NET_OPT, |
|
1385 | 1382 |
NONICS_OPT, |
1386 | 1383 |
NWSYNC_OPT, |
1387 | 1384 |
cli_option("--no-start", dest="start", default=True, |
... | ... | |
1535 | 1532 |
default=[], dest="disks", |
1536 | 1533 |
action="append", |
1537 | 1534 |
type="identkeyval"), |
1538 |
cli_option("--net", help="NIC changes", |
|
1539 |
default=[], dest="nics", |
|
1540 |
action="append", |
|
1541 |
type="identkeyval"), |
|
1535 |
NET_OPT, |
|
1542 | 1536 |
SUBMIT_OPT, |
1543 | 1537 |
], |
1544 | 1538 |
"<instance>", "Alters the parameters of an instance"), |
Also available in: Unified diff