From af0c5a1160198fde8a79b956a4c665dc574cc466 Mon Sep 17 00:00:00 2001
From: Pavel Moravec <pmoravec@redhat.com>
Date: Thu, 1 Nov 2018 22:35:26 +0100
Subject: [PATCH] [firewalld] collect nftables ruleset
Collect "nft list ruleset".
Resolves: #1470
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
---
sos/plugins/firewalld.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sos/plugins/firewalld.py b/sos/plugins/firewalld.py
index 51dd475c..7185b5d4 100644
--- a/sos/plugins/firewalld.py
+++ b/sos/plugins/firewalld.py
@@ -32,6 +32,9 @@ class FirewallD(Plugin, RedHatPlugin):
"/var/log/firewalld",
])
+ # collect nftables ruleset
+ self.add_cmd_output("nft list ruleset")
+
# use a 10s timeout to workaround dbus problems in
# docker containers.
self.add_cmd_output([
--
2.17.2