domain.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
* Add missing attributes to DomainChardevSource.
* Change Path to be omitempty because several chardev types do not use it.
* Document which chardev types use which attributes (for convenience)
I was mainly interested in making it possible to define nmdm devices from go code,
but I figured I would add the other missing attributes while I was here.
---
domain.go | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/domain.go b/domain.go
index f4ef35c..debc5b2 100644
--- a/domain.go
+++ b/domain.go
@@ -256,9 +256,15 @@ type DomainInterface struct {
}
type DomainChardevSource struct {
- Mode string `xml:"mode,attr,omitempty"`
- Path string `xml:"path,attr"`
- Append string `xml:"append,attr,omitempty"`
+ Mode string `xml:"mode,attr,omitempty"` // tcp,udp,unix
+ Path string `xml:"path,attr,omitempty"` // file,pty,dev,pipe
+ Channnel string `xml:"channel,attr,omitempty"` // spiceport
+ Append string `xml:"append,attr,omitempty"` // file
+ Host string `xml:"host,attr,omitempty"` // tcp,udp
+ Service string `xml:"service,attr,omitempty"` // tcp,udp
+ TLS string `xml:"tls,attr,omitempty"` // tcp(QEMU)
+ Master string `xml:"master,attr,omitempty"` // nmdm
+ Slave string `xml:"slave,attr,omitempty"` // nmdm
}
type DomainChardevTarget struct {
--
2.14.1
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Please disregard this, I accidentally sent the wrong patch.
This one overlaps with
https://www.redhat.com/archives/libvir-list/2017-October/msg00022.html
and I will be reworking it.
On Sat, Nov 4, 2017, at 03:18 PM, Brandon Bergren wrote:
> * Add missing attributes to DomainChardevSource.
>
> * Change Path to be omitempty because several chardev types do not use
> it.
>
> * Document which chardev types use which attributes (for convenience)
>
> I was mainly interested in making it possible to define nmdm devices from
> go code,
> but I figured I would add the other missing attributes while I was here.
> ---
> domain.go | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/domain.go b/domain.go
> index f4ef35c..debc5b2 100644
> --- a/domain.go
> +++ b/domain.go
> @@ -256,9 +256,15 @@ type DomainInterface struct {
> }
>
> type DomainChardevSource struct {
> - Mode string `xml:"mode,attr,omitempty"`
> - Path string `xml:"path,attr"`
> - Append string `xml:"append,attr,omitempty"`
> + Mode string `xml:"mode,attr,omitempty"` // tcp,udp,unix
> + Path string `xml:"path,attr,omitempty"` //
> file,pty,dev,pipe
> + Channnel string `xml:"channel,attr,omitempty"` // spiceport
> + Append string `xml:"append,attr,omitempty"` // file
> + Host string `xml:"host,attr,omitempty"` // tcp,udp
> + Service string `xml:"service,attr,omitempty"` // tcp,udp
> + TLS string `xml:"tls,attr,omitempty"` // tcp(QEMU)
> + Master string `xml:"master,attr,omitempty"` // nmdm
> + Slave string `xml:"slave,attr,omitempty"` // nmdm
> }
>
> type DomainChardevTarget struct {
> --
> 2.14.1
>
--
Brandon Bergren
git@bdragon.rtk0.net
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
© 2016 - 2025 Red Hat, Inc.