interface: dump inactive xml when interface isn't active
interface: dump inactive xml when interface isn't active

Other drivers in libvirt (e.g. network, qemu) will automatically
return the "inactive" (persistent configuration) XML of an object when
that object is inactive. The netcf backend of the interface driver
would always try to return the live status XML of the interface, even
when it was down. Although netcf does return valid XML in that case,
for bond interfaces it is missing almost all of its content, including
the <bond> subelement itself, leading to this error message from
"virsh iface-dumpxml" of a bond interface that is inactive:

  error: XML error: bond interface misses the bond element

(this is because libvirt's validation of the XML returned by netcf
always requires a <bond> element be present).

This patch modifies the interface driver netcf backend to check if the
interface is inactive, and in that case always return the inactive XML
(which will always have a <bond> element, thus eliminating the error
message, as well as making operation more in line with other drivers.

This fixes the following bug:

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

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