virsh-domain-monitor: Refactor cmdDomIfGetLink
virsh-domain-monitor: Refactor cmdDomIfGetLink

The domif-getlink command did not terminate successfully when the
interface state was found. As the code used old and too complex approach
to do the job, this patch refactors it and fixes the bug.

fabianfreyer/libvirt,olafhering/libvirt,shugaoye/libvirt,eskultety/libvirt,cbosdo/libvirt,andreabolognani/libvirt,cbosdo/libvirt,datto/libvirt,libvirt/libvirt,taget/libvirt,zippy2/libvirt,rlaager/libvirt,agx/libvirt,jardasgit/libvirt,jardasgit/libvirt,jardasgit/libvirt,zippy2/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,agx/libvirt,nertpinx/libvirt,datto/libvirt,shugaoye/libvirt,elmarco/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,elmarco/libvirt,taget/libvirt,agx/libvirt,zippy2/libvirt,VenkatDatta/libvirt,taget/libvirt,elmarco/libvirt,crobinso/libvirt,olafhering/libvirt,eskultety/libvirt,nertpinx/libvirt,taget/libvirt,libvirt/libvirt,agx/libvirt,jfehlig/libvirt,shugaoye/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,nertpinx/libvirt,agx/libvirt,cbosdo/libvirt,VenkatDatta/libvirt,eskultety/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,eskultety/libvirt,rlaager/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,rlaager/libvirt,zippy2/libvirt,cbosdo/libvirt,olafhering/libvirt,elmarco/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,libvirt/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,shugaoye/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,crobinso/libvirt,andreabolognani/libvirt,nertpinx/libvirt,elmarco/libvirt,jfehlig/libvirt,rlaager/libvirt,eskultety/libvirt,taget/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,crobinso/libvirt,rlaager/libvirt,libvirt/libvirt,datto/libvirt