
17 Jun
2008
17 Jun
'08
2:08 a.m.
class CIM_NetResourceAllocationSettingData(CIMClassMOF): - def __init__(self, type, mac, name): + def __init__(self, type, mac, name, virt_net=None): self.Address = mac self.NetworkType = type if type == 'ethernet' or type == 'bridge' : self.ResourceType = RASD_TYPE_NET_ETHER else: self.ResourceType = RASD_TYPE_NET_OTHER
I think the "network" type interface should also be considered as RASD_TYPE_NET_EHTER ?
Yep, RASD_TYPE_NET_ETHER is device type 10, which corresponds to the save value in the CIM provider. Good call =) -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com