5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-01-18 10:03:54 +03:00

fix #5324: non vlanaware zone: add mtu to veth links

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2024-03-25 18:01:49 +01:00 committed by Thomas Lamprecht
parent e0e0f4fa86
commit 1869d5e7fa
3 changed files with 8 additions and 1 deletions

View File

@ -106,17 +106,20 @@ sub generate_sdn_config {
@iface_config = ();
push @iface_config, "link-type veth";
push @iface_config, "veth-peer-name $vnet_uplinkpeer";
push @iface_config, "mtu $mtu" if $mtu;
push(@{$config->{$vnet_uplink}}, @iface_config) if !$config->{$vnet_uplink};
@iface_config = ();
push @iface_config, "link-type veth";
push @iface_config, "veth-peer-name $vnet_uplink";
push @iface_config, "mtu $mtu" if $mtu;
push(@{$config->{$vnet_uplinkpeer}}, @iface_config) if !$config->{$vnet_uplinkpeer};
@iface_config = ();
push @iface_config, "bridge_ports $bridge_ports $vnet_uplinkpeer";
push @iface_config, "bridge_stp off";
push @iface_config, "bridge_fd 0";
push @iface_config, "mtu $mtu" if $mtu;
push(@{$config->{$bridgevlan}}, @iface_config) if !$config->{$bridgevlan};
}

View File

@ -4,20 +4,24 @@ auto ln_myvnet
iface ln_myvnet
link-type veth
veth-peer-name pr_myvnet
mtu 9200
auto myvnet
iface myvnet
bridge_ports ln_myvnet
bridge_stp off
bridge_fd 0
mtu 9200
auto pr_myvnet
iface pr_myvnet
link-type veth
veth-peer-name ln_myvnet
mtu 9200
auto vmbr0v100
iface vmbr0v100
bridge_ports eth0.100 pr_myvnet
bridge_stp off
bridge_fd 0
mtu 9200

View File

@ -6,6 +6,6 @@
},
},
zones => {
ids => { myzone => { bridge => "vmbr0", ipam => "pve", type => "vlan" } },
ids => { myzone => { bridge => "vmbr0", ipam => "pve", type => "vlan", mtu => "9200" } },
},
}