conf: Don't format actual network definition in migratable XML
conf: Don't format actual network definition in migratable XML

https://bugzilla.redhat.com/show_bug.cgi?id=1177194

When migrate a vm, we will generate a xml via qemuDomainDefFormatLive and
pass this xml to target libvirtd. Libvirt will use the current network
state in def->data.network.actual to generate the xml, this will make
migrate failed when we set a network type guest interface use a macvtap
network as a source in a vm then migrate vm to another host(which has the
different macvtap network settings: different interface name, bridge name...)

Add a flag check in virDomainNetDefFormat, if we set a VIR_DOMAIN_XML_MIGRATABLE
flag when call virDomainNetDefFormat, we won't get the current vm interface
state.

Signed-off-by: Luyao Huang <23d9981432efa88691fd2a71f5525bc2174f7664@redhat.com>
Signed-off-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

datto/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,agx/libvirt,libvirt/libvirt,datto/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,nertpinx/libvirt,taget/libvirt,crobinso/libvirt,eskultety/libvirt,taget/libvirt,datto/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,crobinso/libvirt,shugaoye/libvirt,jardasgit/libvirt,zippy2/libvirt,eskultety/libvirt,nertpinx/libvirt,jfehlig/libvirt,rlaager/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,taget/libvirt,libvirt/libvirt,elmarco/libvirt,jfehlig/libvirt,olafhering/libvirt,olafhering/libvirt,elmarco/libvirt,andreabolognani/libvirt,agx/libvirt,shugaoye/libvirt,jfehlig/libvirt,elmarco/libvirt,zippy2/libvirt,shugaoye/libvirt,rlaager/libvirt,nertpinx/libvirt,andreabolognani/libvirt,rlaager/libvirt,taget/libvirt,shugaoye/libvirt,agx/libvirt,zippy2/libvirt,jfehlig/libvirt,datto/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,agx/libvirt,zippy2/libvirt,libvirt/libvirt,jardasgit/libvirt,crobinso/libvirt,jardasgit/libvirt,eskultety/libvirt,taget/libvirt,eskultety/libvirt,fabianfreyer/libvirt,elmarco/libvirt,eskultety/libvirt,elmarco/libvirt,crobinso/libvirt,nertpinx/libvirt,datto/libvirt,agx/libvirt,libvirt/libvirt,olafhering/libvirt,VenkatDatta/libvirt,rlaager/libvirt,olafhering/libvirt,fabianfreyer/libvirt,rlaager/libvirt,fabianfreyer/libvirt