mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
When nftablesdoc tests dump the state of nftables, the argument '-y' / '--numeric-priority' isn't used, so all priorities should be stringified. However, there's a bug in older versions of nftables that prevents the stringification of the 'dstnat' priority — it's currently dumped as '-100'. New versions fix that, and thus running these tests on Debian 13 fails because of this discrepancy with golden files. So, look for 'type nat hook output priority -100' and stringify the priority to ensure compatibility across versions of nft. Signed-off-by: Albin Kerouanton <albinker@gmail.com>