Revision b21d488b lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
1645 | 1645 |
mod_item_fn = \ |
1646 | 1646 |
ht.TAnd(ht.TIsLength(3), ht.TItems([ |
1647 | 1647 |
ht.TElemOf(constants.DDMS_VALUES_WITH_MODIFY), |
1648 |
ht.Comment("Disk index, can be negative, e.g. -1 for last disk")(ht.TInt), |
|
1648 |
ht.Comment("Device index, can be negative, e.g. -1 for last disk") |
|
1649 |
(ht.TOr(ht.TInt, ht.TString)), |
|
1649 | 1650 |
fn, |
1650 | 1651 |
])) |
1651 | 1652 |
|
... | ... | |
1667 | 1668 |
_PForceVariant, |
1668 | 1669 |
_PIgnoreIpolicy, |
1669 | 1670 |
("nics", ht.EmptyList, TestNicModifications, |
1670 |
"List of NIC changes: each item is of the form ``(op, index, settings)``," |
|
1671 |
" ``op`` is one of ``%s``, ``%s`` or ``%s``, ``index`` can be either -1" |
|
1672 |
" to refer to the last position, or a zero-based index number; a" |
|
1671 |
"List of NIC changes: each item is of the form" |
|
1672 |
" ``(op, identifier, settings)``, ``op`` is one of ``%s``, ``%s`` or" |
|
1673 |
" ``%s``, ``identifier`` can be a zero-based index number (or -1 to refer" |
|
1674 |
" to the last position), the NIC's UUID of the NIC's name; a" |
|
1673 | 1675 |
" deprecated version of this parameter used the form ``(op, settings)``," |
1674 | 1676 |
" where ``op`` can be ``%s`` to add a new NIC with the specified" |
1675 | 1677 |
" settings, ``%s`` to remove the last NIC or a number to modify the" |
Also available in: Unified diff