diff options
Diffstat (limited to 'libvirt/network_interface_def.go')
-rw-r--r-- | libvirt/network_interface_def.go | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/libvirt/network_interface_def.go b/libvirt/network_interface_def.go index fe3d36d3..0af0cdf1 100644 --- a/libvirt/network_interface_def.go +++ b/libvirt/network_interface_def.go @@ -1,8 +1,6 @@ package libvirt -import ( - "encoding/xml" -) +import "github.com/libvirt/libvirt-go-xml" // An interface definition, as returned/understood by libvirt // (see https://libvirt.org/formatdomain.html#elementsNICS) @@ -12,20 +10,5 @@ import ( // <source network='default'/> // </interface> // -type defNetworkInterface struct { - XMLName xml.Name `xml:"interface"` - Type string `xml:"type,attr"` - Mac struct { - Address string `xml:"address,attr"` - } `xml:"mac"` - Source struct { - Network string `xml:"network,attr,omitempty"` - Bridge string `xml:"bridge,attr,omitempty"` - Dev string `xml:"dev,attr,omitempty"` - Mode string `xml:"mode,attr"` - } `xml:"source"` - Model struct { - Type string `xml:"type,attr"` - } `xml:"model"` - waitForLease bool -} + +var waitForLeases map[libvirtxml.DomainInterface]bool |