From 996ef6e115c26fa32311d2bae51202ae5d287dc1 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 29 Sep 2021 19:44:13 +0200 Subject: [PATCH] bundles/nftables: more sorted() --- bundles/nftables/files/nftables.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/nftables/files/nftables.conf b/bundles/nftables/files/nftables.conf index f417856..5e64a02 100644 --- a/bundles/nftables/files/nftables.conf +++ b/bundles/nftables/files/nftables.conf @@ -56,14 +56,14 @@ table nat { chain prerouting { type nat hook prerouting priority -100 -% for rule in node.metadata.get('nftables/rules/nat_prerouting', []): +% for rule in sorted(node.metadata.get('nftables/rules/nat_prerouting', [])): ${rule} % endfor } chain postrouting { type nat hook postrouting priority 100 -% for rule in node.metadata.get('nftables/rules/nat_postrouting', []): +% for rule in sorted(node.metadata.get('nftables/rules/nat_postrouting', [])): ${rule} % endfor }