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 <[email protected]>
---
 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



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to