Revision 63e52d34 lib/objects.py
b/lib/objects.py | ||
---|---|---|
489 | 489 |
|
490 | 490 |
class NIC(ConfigObject): |
491 | 491 |
"""Config object representing a network card.""" |
492 |
__slots__ = ["name", "mac", "ip", "network", "nicparams", "netinfo"] + _UUID |
|
492 |
__slots__ = ["name", "mac", "ip", "network", |
|
493 |
"nicparams", "netinfo", "pci"] + _UUID |
|
493 | 494 |
|
494 | 495 |
@classmethod |
495 | 496 |
def CheckParameterSyntax(cls, nicparams): |
... | ... | |
513 | 514 |
class Disk(ConfigObject): |
514 | 515 |
"""Config object representing a block device.""" |
515 | 516 |
__slots__ = (["name", "dev_type", "logical_id", "physical_id", |
516 |
"children", "iv_name", "size", "mode", "params", "spindles"] +
|
|
517 |
_UUID) |
|
517 |
"children", "iv_name", "size", "mode", "params", |
|
518 |
"spindles", "pci"] + _UUID)
|
|
518 | 519 |
|
519 | 520 |
def CreateOnSecondary(self): |
520 | 521 |
"""Test if this device needs to be created on a secondary node.""" |
... | ... | |
1058 | 1059 |
"hvparams", |
1059 | 1060 |
"beparams", |
1060 | 1061 |
"osparams", |
1062 |
"dev_idxs", |
|
1061 | 1063 |
"admin_state", |
1062 | 1064 |
"nics", |
1063 | 1065 |
"disks", |
Also available in: Unified diff