[libvirt] [PATCH 3/3] virsh-domain-monitor: Refactor cmdDomIfGetLink