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 {
|
chain prerouting {
|
||||||
type nat hook prerouting priority -100
|
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}
|
${rule}
|
||||||
% endfor
|
% endfor
|
||||||
}
|
}
|
||||||
chain postrouting {
|
chain postrouting {
|
||||||
type nat hook postrouting priority 100
|
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}
|
${rule}
|
||||||
% endfor
|
% endfor
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue