[libvirt] [PATCH go-xml] Add reconnect support for vhost-user interfaces

Andrea Bolognani abologna at redhat.com
Wed Jan 31 13:20:42 UTC 2018


Introduced in libvirt commit 614be3b88276.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
Does this look like Go to you? Because I have no idea what I'm doing.

 domain.go | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/domain.go b/domain.go
index 429e61b..4f7725a 100644
--- a/domain.go
+++ b/domain.go
@@ -392,9 +392,10 @@ type DomainInterfaceSourceEthernet struct {
 }
 
 type DomainInterfaceSourceVHostUser struct {
-	Type string `xml:"type,attr"`
-	Path string `xml:"path,attr,omitempty"`
-	Mode string `xml:"mode,attr,omitempty"`
+	Type      string                          `xml:"type,attr"`
+	Path      string                          `xml:"path,attr,omitempty"`
+	Mode      string                          `xml:"mode,attr,omitempty"`
+	Reconnect *DomainInterfaceSourceReconnect `xml:"reconnect"`
 }
 
 type DomainInterfaceSourceServer struct {
@@ -449,6 +450,11 @@ type DomainInterfaceSourceLocal struct {
 	Port    uint   `xml:"port,attr,omitempty"`
 }
 
+type DomainInterfaceSourceReconnect struct {
+	Enabled string `xml:"enabled,attr"`
+	Timeout *uint  `xml:"timeout,attr"`
+}
+
 type DomainInterfaceTarget struct {
 	Dev string `xml:"dev,attr"`
 }
-- 
2.14.3




More information about the libvir-list mailing list