[libvirt] [PATCH go-xml] Add support for Node Device with basic testing.

Daniel P. Berrange berrange at redhat.com
Wed May 31 12:55:36 UTC 2017


On Tue, May 30, 2017 at 10:36:22AM -0400, Vladik Romanovsky wrote:
> Thanks for the review.
> 
> On Tue, May 30, 2017 at 8:46 AM, Daniel P. Berrange <berrange at redhat.com> wrote:
> >> +type NodeDevice struct {
> >> +     Name       string          `xml:"name"`
> >> +     Path       string          `xml:"path,omitempty"`
> >> +     Parent     string          `xml:"parent,omitempty"`
> >> +     Driver     string          `xml:"driver>name,omitempty"`
> >> +     Capability *CapabilityType `xml:"capability"`
> >> +}
> >
> > A single device can have multiple capabilities.
> Do you mean it should be:
>              Capability []CapabilityType `xml:"capability"` ?

Yes exactly.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list