Skip to content

Commit

Permalink
[firewall_tables] Gather nft rule handle numbers
Browse files Browse the repository at this point in the history
Added -a to 'nft list rulest' command to add
handle numbers to the gathered output

    Signed-off-by: Michael Colombo  <[email protected]>
  • Loading branch information
Michael Colombo committed Sep 29, 2023
1 parent 87e8482 commit c8094b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/report/plugins/firewall_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c8094b6

Please sign in to comment.