bundles/nftables: more sorted()
This commit is contained in:
parent
5f1f4fd654
commit
996ef6e115
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue