[pve-devel] [PATCH pve-network 5/6] sdn: vxlan: sort peer IPs when generating sdn config

Hannes Laimer h.laimer at proxmox.com
Thu Jan 22 14:51:50 CET 2026


So we have a stable ordering of the `vxlan_remoteip` entries,
and tests with more than one peer don't fail randomly.

Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
 src/PVE/Network/SDN/Zones/VxlanPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm
index ac006b5..5a3a706 100644
--- a/src/PVE/Network/SDN/Zones/VxlanPlugin.pm
+++ b/src/PVE/Network/SDN/Zones/VxlanPlugin.pm
@@ -148,7 +148,7 @@ sub generate_sdn_config {
     my @iface_config = ();
     push @iface_config, "vxlan-id $tag";
 
-    for my $address (@peers) {
+    for my $address (sort @peers) {
         next if $address eq $ifaceip;
         push @iface_config, "vxlan_remoteip $address";
     }
-- 
2.47.3





More information about the pve-devel mailing list