Revision fbab083b lib/objects.py
b/lib/objects.py | ||
---|---|---|
487 | 487 |
|
488 | 488 |
class NIC(ConfigObject): |
489 | 489 |
"""Config object representing a network card.""" |
490 |
__slots__ = ["name", "mac", "ip", "network", "nicparams", "netinfo"] + _UUID |
|
490 |
__slots__ = ["name", "mac", "ip", "network", |
|
491 |
"nicparams", "netinfo", "pci"] + _UUID |
|
491 | 492 |
|
492 | 493 |
@classmethod |
493 | 494 |
def CheckParameterSyntax(cls, nicparams): |
... | ... | |
511 | 512 |
class Disk(ConfigObject): |
512 | 513 |
"""Config object representing a block device.""" |
513 | 514 |
__slots__ = (["name", "dev_type", "logical_id", "physical_id", |
514 |
"children", "iv_name", "size", "mode", "params", "spindles"] +
|
|
515 |
_UUID) |
|
515 |
"children", "iv_name", "size", "mode", "params", |
|
516 |
"spindles", "pci"] + _UUID)
|
|
516 | 517 |
|
517 | 518 |
def CreateOnSecondary(self): |
518 | 519 |
"""Test if this device needs to be created on a secondary node.""" |
Also available in: Unified diff