Okey, I think there is a more safe implementation here. 
1. Get the mac of network device on host, with utils_net or libvirt_xml.nodedev_xml. 
2. attach interface to guest.
3. utils_net.get_linux_ifname() to get the ifname on guest.