[Libvirt-cim] [PATCH 6 of 6] Add another relationship to ElementCapabilities, the ResourcePool-AllocationCapabilities connection. Only supports the pool_to_alloc direction, because it is the only one that's terribly interesting, but the other direction will need to be added at some point

Jay Gagnon grendel at linux.vnet.ibm.com
Fri Nov 9 21:27:54 UTC 2007


Dan Smith wrote:
> JG> I'm honestly not even sure what it's supposed to do on its own .
> JG> Reading through the entire Allocation Capabilities Profile
> JG> (DSP1043) provides no insight into what get/enumerateInstance(s)
> JG> would do.  Reasonable detail is given about how it should be
> JG> connected to things via associations, but there isn't much concept
> JG> of a standalone instance.
>
> The instance functions for AllocationCapabilities could probably be
> left unimplemented without anyone noticing, I imagine.  However, I
> think that EnumInstances should return an instance of every
> AllocationCapabilities that could possibly be had through association
> with a pool.  Thus, enumerate all the pools, create an AC instance for
> each and return them.  GetInstance works the same.  Should be
> trivial.
>
>   
I can see what you mean with EnumInstances, although if this is how the
DMTF wants things done I still take issue with it since it just feels
like a broken way of doing what the associations do.

-- 

-Jay




More information about the Libvirt-cim mailing list