Revision 845c573d lib/opcodes.py

b/lib/opcodes.py
1622 1622
    ht.TAnd(ht.TIsLength(3), ht.TItems([
1623 1623
      ht.TElemOf(constants.DDMS_VALUES_WITH_MODIFY),
1624 1624
      ht.Comment("Device index, can be negative, e.g. -1 for last disk")
1625
                 (ht.TInt),
1625
                 (ht.TOr(ht.TInt, ht.TString)),
1626 1626
      fn,
1627 1627
      ]))
1628 1628

  
......
1643 1643
    _PForceVariant,
1644 1644
    _PIgnoreIpolicy,
1645 1645
    ("nics", ht.EmptyList, TestNicModifications,
1646
     "List of NIC changes: each item is of the form ``(op, index, settings)``,"
1647
     " ``op`` is one of ``%s``, ``%s`` or ``%s``, ``index`` can be either -1"
1648
     " to refer to the last position, or a zero-based index number" %
1646
     "List of NIC changes: each item is of the form"
1647
     " ``(op, identifier, settings)``, ``op`` is one of ``%s``, ``%s`` or"
1648
     " ``%s``, ``identifier`` can be either a zero-based index number"
1649
     " (-1 to refer to the last position), or the NIC UUID or the NIC name" %
1649 1650
     (constants.DDM_ADD, constants.DDM_MODIFY, constants.DDM_REMOVE)),
1650 1651
    ("disks", ht.EmptyList, TestDiskModifications,
1651 1652
     "List of disk changes; see ``nics``"),

Also available in: Unified diff