From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 7E4C41FF146 for ; Tue, 09 Jun 2026 15:26:24 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DDE511233D; Tue, 9 Jun 2026 15:25:54 +0200 (CEST) From: Hannes Laimer To: pve-devel@lists.proxmox.com Subject: [PATCH pve-network 09/16] sdn: zones: add vxlan-gbp option to vxlan and evpn zones Date: Tue, 9 Jun 2026 15:25:15 +0200 Message-ID: <20260609132522.235917-10-h.laimer@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260609132522.235917-1-h.laimer@proxmox.com> References: <20260609132522.235917-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: 1781011483910 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.084 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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: XWHCTBHCOG3OQA5KVF36LPQ22TDINEHW X-Message-ID-Hash: XWHCTBHCOG3OQA5KVF36LPQ22TDINEHW 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