all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-network] zones: evpn/simple: add missing mask to gateway address
@ 2020-11-26 14:29 Alexandre Derumier
  2020-11-27  9:57 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Derumier @ 2020-11-26 14:29 UTC (permalink / raw)
  To: pve-devel

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

diff --git a/PVE/Network/SDN/Zones/EvpnPlugin.pm b/PVE/Network/SDN/Zones/EvpnPlugin.pm
index 14bbf56..d833641 100644
--- a/PVE/Network/SDN/Zones/EvpnPlugin.pm
+++ b/PVE/Network/SDN/Zones/EvpnPlugin.pm
@@ -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}) {
diff --git a/PVE/Network/SDN/Zones/SimplePlugin.pm b/PVE/Network/SDN/Zones/SimplePlugin.pm
index ed41e62..94452a0 100644
--- a/PVE/Network/SDN/Zones/SimplePlugin.pm
+++ b/PVE/Network/SDN/Zones/SimplePlugin.pm
@@ -65,7 +65,7 @@ sub generate_sdn_config {
 
 	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;
 	}
 	#add route for /32 pointtopoint
-- 
2.20.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH pve-network] zones: evpn/simple: add missing mask to gateway address
  2020-11-26 14:29 [pve-devel] [PATCH pve-network] zones: evpn/simple: add missing mask to gateway address Alexandre Derumier
@ 2020-11-27  9:57 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2020-11-27  9:57 UTC (permalink / raw)
  To: Proxmox VE development discussion, Alexandre Derumier

On 26.11.20 15:29, Alexandre Derumier wrote:
> Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
> ---
>  PVE/Network/SDN/Zones/EvpnPlugin.pm   | 3 ++-
>  PVE/Network/SDN/Zones/SimplePlugin.pm | 2 +-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-27  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 14:29 [pve-devel] [PATCH pve-network] zones: evpn/simple: add missing mask to gateway address Alexandre Derumier
2020-11-27  9:57 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal