How to create tap devices using virsh?


This is a snippet from configuration file created using qemu-kvm management tool. How do I create the same config using VMM or virsh? I used the -writeconfig option to generate this file. Can I somehow generate .xml file for virsh using this?

type = “nic”

type = "tap"
script = "/etc/ovs-ifup"
downscript = “/etc/ovs-ifdown”[/code]