From 39b7567db8477cebf98ca7ff225c2a356b42bd98 Mon Sep 17 00:00:00 2001 From: Alvaro Saurin Date: Mon, 21 Aug 2017 18:23:13 +0200 Subject: Retry the query about interfaces to the qemu-agent --- libvirt/resource_libvirt_domain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvirt/resource_libvirt_domain.go') 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) { -- cgit v1.2.3