bundles/nftables: more sorted()

This commit is contained in:
Franzi 2021-09-29 19:44:13 +02:00
parent 5f1f4fd654
commit 996ef6e115
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
1 changed files with 2 additions and 2 deletions

View File

@ -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
}