summaryrefslogtreecommitdiff
path: root/libvirt/resource_libvirt_domain.go
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt/resource_libvirt_domain.go')
-rw-r--r--libvirt/resource_libvirt_domain.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go
index b5d0fb6d..25829f35 100644
--- a/libvirt/resource_libvirt_domain.go
+++ b/libvirt/resource_libvirt_domain.go
@@ -1300,6 +1300,7 @@ func getDomainInterfaces(domain libvirt.Domain) ([]libvirt.DomainInterface, erro
// get all the interfaces using the qemu-agent, this includes also
// interfaces that are not attached to networks managed by libvirt
// (eg. bridges, macvtap,...)
+ log.Print("[DEBUG] fetching networking interfaces using qemu-agent")
interfaces := getDomainInterfacesViaQemuAgent(&domain, true)
if len(interfaces) > 0 {
// the agent will always return all the interfaces, both the
@@ -1308,9 +1309,8 @@ func getDomainInterfaces(domain libvirt.Domain) ([]libvirt.DomainInterface, erro
return interfaces, nil
}
- log.Print("[DEBUG] fetching networking interfaces using libvirt API")
-
// get all the interfaces attached to libvirt networks
+ log.Print("[DEBUG] fetching networking interfaces using libvirt API")
interfaces, err := domain.ListAllInterfaceAddresses(libvirt.DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE)
if err != nil {
switch err.(type) {