From b9056a9db06c5b6d1f1e658bf18ce098ca13853d Mon Sep 17 00:00:00 2001 From: Michael Colombo Date: Fri, 29 Sep 2023 10:01:45 -0400 Subject: [PATCH] [firewall_tables] Gather nft rule handle numbers Added -a to 'nft list rulest' command to add handle numbers to the gathered output Signed-off-by: Michael Colombo --- sos/report/plugins/firewall_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/report/plugins/firewall_tables.py b/sos/report/plugins/firewall_tables.py index 372e6e47a4..ec97fdf0d9 100644 --- a/sos/report/plugins/firewall_tables.py +++ b/sos/report/plugins/firewall_tables.py @@ -56,7 +56,7 @@ def collect_nftables(self): nft_pred = SoSPredicate(self, kmods=['nf_tables', 'nfnetlink'], required={'kmods': 'all'}) - return self.collect_cmd_output("nft list ruleset", pred=nft_pred, + return self.collect_cmd_output("nft -a list ruleset", pred=nft_pred, changes=True) def setup(self):