[pve-devel] [PATCH pve-network] vxlan|evpn : fix mtu

Alexandre Derumier aderumier at odiso.com
Thu Feb 13 12:16:13 CET 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Network/SDN/Zones/EvpnPlugin.pm  | 2 +-
 PVE/Network/SDN/Zones/VxlanPlugin.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/Network/SDN/Zones/EvpnPlugin.pm b/PVE/Network/SDN/Zones/EvpnPlugin.pm
index 056a7b1..aa75988 100644
--- a/PVE/Network/SDN/Zones/EvpnPlugin.pm
+++ b/PVE/Network/SDN/Zones/EvpnPlugin.pm
@@ -56,7 +56,7 @@ sub generate_sdn_config {
 
     my $mtu = 1450;
     $mtu = $interfaces_config->{$iface}->{mtu} - 50 if $interfaces_config->{$iface}->{mtu};
-    $mtu = $vnet->{mtu} if $plugin_config->{mtu};
+    $mtu = $plugin_config->{mtu} if $plugin_config->{mtu};
 
     #vxlan interface
     my @iface_config = ();
diff --git a/PVE/Network/SDN/Zones/VxlanPlugin.pm b/PVE/Network/SDN/Zones/VxlanPlugin.pm
index 82760f1..ce9aebf 100644
--- a/PVE/Network/SDN/Zones/VxlanPlugin.pm
+++ b/PVE/Network/SDN/Zones/VxlanPlugin.pm
@@ -58,7 +58,7 @@ sub generate_sdn_config {
 
     my $mtu = 1450;
     $mtu = $interfaces_config->{$iface}->{mtu} - 50 if $interfaces_config->{$iface}->{mtu};
-    $mtu = $vnet->{mtu} if $plugin_config->{mtu};
+    $mtu = $plugin_config->{mtu} if $plugin_config->{mtu};
 
     #vxlan interface
     my @iface_config = ();
-- 
2.20.1




More information about the pve-devel mailing list