From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id C95681FF0E0 for ; Thu, 09 Jul 2026 11:19:57 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 39424214FD; Thu, 09 Jul 2026 11:19:37 +0200 (CEST) From: Hannes Laimer To: pve-devel@lists.proxmox.com Subject: [PATCH pve-network v2 15/27] sdn: zones: add vxlan-gbp option to vxlan and evpn zones Date: Thu, 9 Jul 2026 11:18:40 +0200 Message-ID: <20260709091852.538885-16-h.laimer@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260709091852.538885-1-h.laimer@proxmox.com> References: <20260709091852.538885-1-h.laimer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1783588743406 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.227 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: TXFNOPMDZZRLF4I5CX4QDTRID3KEHHSL X-Message-ID-Hash: TXFNOPMDZZRLF4I5CX4QDTRID3KEHHSL X-MailFrom: h.laimer@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add an opt-in per-zone vxlan-gbp flag that creates the zone's vxlan interfaces with VXLAN-GBP, so the source group rides the GBP field across hosts and microsegmentation can enforce on the receiving node. For evpn it covers both the per-vnet device and the l3vni. Off by default, and every VTEP in the zone must have it enabled or it drops the GBP-tagged traffic. Signed-off-by: Hannes Laimer --- src/PVE/Network/SDN/Zones/EvpnPlugin.pm | 3 +++ src/PVE/Network/SDN/Zones/VxlanPlugin.pm | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/src/PVE/Network/SDN/Zones/EvpnPlugin.pm b/src/PVE/Network/SDN/Zones/EvpnPlugin.pm index dfbd7e9..d8ce733 100644 --- a/src/PVE/Network/SDN/Zones/EvpnPlugin.pm +++ b/src/PVE/Network/SDN/Zones/EvpnPlugin.pm @@ -118,6 +118,7 @@ sub options { 'bridge-disable-mac-learning' => { optional => 1 }, 'rt-import' => { optional => 1 }, 'vxlan-port' => { optional => 1 }, + 'vxlan-gbp' => { optional => 1 }, mtu => { optional => 1 }, mac => { optional => 1 }, dns => { optional => 1 }, @@ -223,6 +224,7 @@ sub generate_sdn_config { push @iface_config, "vxlan-id $tag"; push @iface_config, "vxlan-local-tunnelip $ifaceip" if $ifaceip; push @iface_config, "vxlan-port $vxlanport" if $vxlanport; + push @iface_config, "vxlan-gbp on" if $plugin_config->{'vxlan-gbp'}; push @iface_config, "bridge-learning off"; push @iface_config, "bridge-arp-nd-suppress on" if !$plugin_config->{'disable-arp-nd-suppression'}; @@ -319,6 +321,7 @@ sub generate_sdn_config { push @iface_config, "vxlan-id $vrfvxlan"; push @iface_config, "vxlan-local-tunnelip $ifaceip" if $ifaceip; push @iface_config, "vxlan-port $vxlanport" if $vxlanport; + push @iface_config, "vxlan-gbp on" if $plugin_config->{'vxlan-gbp'}; push @iface_config, "bridge-learning off"; push @iface_config, "bridge-arp-nd-suppress on" if !$plugin_config->{'disable-arp-nd-suppression'}; diff --git a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm index a408261..167f470 100644 --- a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm +++ b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm @@ -44,6 +44,13 @@ sub properties { type => 'string', format => 'pve-sdn-fabric-id', }, + 'vxlan-gbp' => { + description => "Enable VXLAN Group Based Policy (GBP) on the zone's VXLAN" + . " interfaces. Carries the source group across hosts for" + . " microsegmentation; every VTEP in the zone must have it enabled.", + type => 'boolean', + optional => 1, + }, }; } @@ -58,6 +65,7 @@ sub options { dnszone => { optional => 1 }, ipam => { optional => 1 }, fabric => { optional => 1 }, + 'vxlan-gbp' => { optional => 1 }, }; } @@ -132,6 +140,7 @@ sub generate_sdn_config { push @iface_config, "vxlan_remoteip $address"; } push @iface_config, "vxlan-port $vxlanport" if $vxlanport; + push @iface_config, "vxlan-gbp on" if $plugin_config->{'vxlan-gbp'}; push @iface_config, "mtu $mtu" if $mtu; push(@{ $config->{$vxlan_iface} }, @iface_config) if !$config->{$vxlan_iface}; -- 2.47.3