From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id C2FEF1FF0F0 for ; Fri, 10 Jul 2026 08:06:57 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9BE2D214A6; Fri, 10 Jul 2026 08:06:56 +0200 (CEST) From: Hannes Laimer To: pve-devel@lists.proxmox.com Subject: [PATCH pve-network] sdn: vxlan: fix max value for vxlan-port Date: Fri, 10 Jul 2026 08:06:48 +0200 Message-ID: <20260710060648.50963-1-h.laimer@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1783663598678 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.335 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: DYI5SBAFEAYUSAG6C753PELJWSDY63LS X-Message-ID-Hash: DYI5SBAFEAYUSAG6C753PELJWSDY63LS 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: As per RFC 768[1] the port is only 16 bits, so the maximum value is 65535. `ifupdown2` failed if 65536 was configured: ``` vxlan_yuuur : error: vxlan_yuuur: vxlan creation failed: 'H' format requires 0 <= number <= 65535 yuuur : error: yuuur: bridge port vxlan_yuuur does not exist ``` [1] https://datatracker.ietf.org/doc/html/rfc768 Signed-off-by: Hannes Laimer --- src/PVE/API2/Network/SDN/Zones.pm | 2 +- src/PVE/Network/SDN/Zones/VxlanPlugin.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/API2/Network/SDN/Zones.pm b/src/PVE/API2/Network/SDN/Zones.pm index b897cbd..e0b417b 100644 --- a/src/PVE/API2/Network/SDN/Zones.pm +++ b/src/PVE/API2/Network/SDN/Zones.pm @@ -187,7 +187,7 @@ my $ZONE_PROPERTIES = { description => "UDP port that should be used for the VXLAN tunnel (default 4789). VXLAN zone only.", minimum => 1, - maximum => 65536, + maximum => 65535, type => 'integer', optional => 1, default => 4789, diff --git a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm index a408261..1d6d588 100644 --- a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm +++ b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm @@ -35,7 +35,7 @@ sub properties { 'vxlan-port' => { description => "UDP port that should be used for the VXLAN tunnel (default 4789).", minimum => 1, - maximum => 65536, + maximum => 65535, type => 'integer', default => 4789, }, -- 2.47.3