]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: remove redundant code that adds "template" netdev name
authorLaine Stump <laine@redhat.com>
Tue, 15 Dec 2020 19:35:35 +0000 (14:35 -0500)
committerLaine Stump <laine@redhat.com>
Thu, 17 Dec 2020 02:31:57 +0000 (21:31 -0500)
commit9606349172b191caec3ad656e1ce1a93a0e0aab4
tree16080c3105dd86c3e6313b1d91a026e6e3ececa6
parent08fe449848493a56a379c85492f49a2c14c5c494
qemu: remove redundant code that adds "template" netdev name

The lower level function virNetDevGenerateName() now understands that
a blank ifname should be replaced with a generated name based on a
template that it knows about itself - there is no need for the higher
level functions to stuff a template name ("vnet%d") into ifname.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_interface.c