Support setting mtu on public interfaces (#1700)

Setting mtu on management and private interfaces is supported. It should
also be supported on public interfaces.
This commit is contained in:
Yevgeniy Kuksenko
2022-12-23 05:10:33 -06:00
committed by GitHub
parent 748e2ccb77
commit ee06cd0a22
2 changed files with 6 additions and 0 deletions

View File

@@ -549,6 +549,9 @@ virtual network.
help attach VLAN tags to specific VMs by adjusting the pattern to match. Note
that you cannot use names reserved for libvirt's usage based on [documentation](
https://libvirt.org/formatdomain.html#overriding-the-target-element).
* `:libvirt__mtu` - MTU size for the Libvirt interface, if not defined, the
created network will use the Libvirt default (1500). VMs still need to configure
their internal interface MTUs.
Additionally for public networks, to facilitate validating if the device provided
can be used, vagrant-libvirt will check both the host interfaces visible to libvirt

View File

@@ -23,6 +23,9 @@
<%- elsif @driver_iommu %>
<driver iommu='on' />
<%- end %>
<% if @mtu %>
<mtu size="<%= @mtu %>" />
<% end %>
<%- if @ovs %>
<virtualport type='openvswitch'>
<%- if @ovs_interfaceid %>