libvirt: add qemu version check when configuring mtu for network
This adds a QEMU check when configuring MTU for ethernet and bridge
interface types. When creating and configuring tap devices, libvirt is
setting MTU but also configures the virtio-net devices to let it
discovers the MTU used. This QEMU 'host_mtu' option is supported by
QEMU version 2.9 and more.
Reviewed: https:/ /review. openstack. org/580188 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=509e0a03039 7887b9d77729f5e 4a356b9fe2a24e
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 509e0a030397887 b9d77729f5e4a35 6b9fe2a24e
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Mon Jul 2 17:42:05 2018 +0200
libvirt: add qemu version check when configuring mtu for network
This adds a QEMU check when configuring MTU for ethernet and bridge
interface types. When creating and configuring tap devices, libvirt is
setting MTU but also configures the virtio-net devices to let it
discovers the MTU used. This QEMU 'host_mtu' option is supported by
QEMU version 2.9 and more.
Closes-Bug: 1779626 29fa8479d1e8a0d 11ec15aaa43 2697256cf3f6953 27e1d71db2)
Change-Id: I55cf259c715ba1
Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>
(cherry picked from commit e2d7189f4ff7e4a