Suppoort for flexible devices in xml libvirt templates