[libvirt] [PATCH] Consolidate interface related functions in interface.c