summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lamprecht <t.lamprecht@proxmox.com>2020-04-09 10:27:53 +0200
committerThomas Lamprecht <t.lamprecht@proxmox.com>2020-04-09 10:27:53 +0200
commit2d4c068e0f70d2f6af50751f737c593c355e4220 (patch)
treeb3dab9e2c48d399883323e9e07286206c68cc252
parenta1ef0eb9c46332451e012a958d66544d5a310c56 (diff)
zones: sort network config keys when iterating for stabillity
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
-rw-r--r--PVE/Network/SDN/Zones.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/PVE/Network/SDN/Zones.pm b/PVE/Network/SDN/Zones.pm
index 9c7f83d..e1a7081 100644
--- a/PVE/Network/SDN/Zones.pm
+++ b/PVE/Network/SDN/Zones.pm
@@ -122,7 +122,7 @@ sub generate_etc_network_config {
}
my $raw_network_config = "";
- foreach my $iface (keys %$config) {
+ foreach my $iface (sort keys %$config) {
$raw_network_config .= "\n";
$raw_network_config .= "auto $iface\n";
$raw_network_config .= "iface $iface\n";