Re: [RFC] virtinst: build libvirt storage xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel P. Berrange wrote:
 >> The general workflow is as follows:
>>
>> =========================================
>> import virtinst.Storage.StoragePool as sp
>>
>> # This gives the appropriate class for the specified pool type
>> pool_class = sp.get_pool_class(sp.TYPE_FOO)
>>
>> # Only required params are a conn/uri and name. Default formats
>> # and target paths have default values, but source paths/
>> # devices and hostnames obviously have no sensible default, but
>> # they still aren't required for object instantiation
>> pool = pool_class(name="foo", uri="xen:///")
> 
> Should proably allow a existing connection to be passed in, otherwise
> this class has to deal with authentication issues too.
> 

I didn't show it in the example, but passing a connection is allowed.

On a side note, we should add support for openAuth in virtinst,
everything is just hardcoded to use libvirt.open at the moment.

- Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux