[Libvirt-cim] [PATCH 1 of 3] [TEST] Update create_netpool_conf() to support new pool creation

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Tue Jun 17 00:08:04 UTC 2008


>>
>>  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 at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list