]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/Network/SDN/Zones/EvpnPlugin.pm
zones: evpn/simple: add missing mask to gateway address
[pve-network.git] / PVE / Network / SDN / Zones / EvpnPlugin.pm
index 14bbf56ec64220e20bb1032d3d159008d7de7b51..d833641e2820fa95fbf7dab39b62ed7f40725944 100644 (file)
@@ -93,10 +93,11 @@ sub generate_sdn_config {
     foreach my $subnetid (sort keys %{$subnets}) {
        my $subnet = $subnets->{$subnetid};
        my $cidr = $subnet->{cidr};
+       my $mask = $subnet->{mask};
 
        my $gateway = $subnet->{gateway};
        if ($gateway) {
-           push @iface_config, "address $gateway" if !defined($address->{$gateway});
+           push @iface_config, "address $gateway/$mask" if !defined($address->{$gateway});
            $address->{$gateway} = 1;
        }
        if ($subnet->{snat}) {