network: honor mtu setting when creating network

This resolves: https://bugzilla.redhat.com/1224348
This commit is contained in:
Laine Stump 2017-01-22 21:33:07 -05:00
parent 68a42bf6f7
commit c0f706865e

View File

@ -2301,7 +2301,7 @@ networkStartNetworkVirtual(virNetworkDriverStatePtr driver,
if (virNetDevTapCreateInBridgePort(network->def->bridge,
&macTapIfName, &network->def->mac,
NULL, NULL, &tapfd, 1, NULL, NULL,
0, NULL,
network->def->mtu, NULL,
VIR_NETDEV_TAP_CREATE_USE_MAC_FOR_BRIDGE |
VIR_NETDEV_TAP_CREATE_IFUP |
VIR_NETDEV_TAP_CREATE_PERSIST) < 0) {