Revision 5f08864c lib/objects.py
b/lib/objects.py | ||
---|---|---|
503 | 503 |
|
504 | 504 |
class NIC(ConfigObject): |
505 | 505 |
"""Config object representing a network card.""" |
506 |
__slots__ = ["mac", "ip", "network", "nicparams", "netinfo"] |
|
506 |
__slots__ = ["idx", "pci", "mac", "ip", "network", "nicparams", "netinfo"]
|
|
507 | 507 |
|
508 | 508 |
@classmethod |
509 | 509 |
def CheckParameterSyntax(cls, nicparams): |
... | ... | |
526 | 526 |
|
527 | 527 |
class Disk(ConfigObject): |
528 | 528 |
"""Config object representing a block device.""" |
529 |
__slots__ = ["dev_type", "logical_id", "physical_id", |
|
529 |
__slots__ = ["idx", "pci", "dev_type", "logical_id", "physical_id",
|
|
530 | 530 |
"children", "iv_name", "size", "mode", "params"] |
531 | 531 |
|
532 | 532 |
def CreateOnSecondary(self): |
... | ... | |
1007 | 1007 |
"hvparams", |
1008 | 1008 |
"beparams", |
1009 | 1009 |
"osparams", |
1010 |
"dev_idxs", |
|
1010 | 1011 |
"admin_state", |
1011 | 1012 |
"nics", |
1012 | 1013 |
"disks", |
Also available in: Unified diff