aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Tenart <atenart@kernel.org>2022-02-16 17:16:48 +0100
committerJake Hunsaker <jhunsake@redhat.com>2022-02-17 16:36:13 -0500
commitb6c51c5fea8115e658a0a696e2f482739441b637 (patch)
tree3b64ae40c98c42b50e89ae55896cc73172ac37c4
parent7069e99d1c5c443f96a98a7ed6db67fa14683e67 (diff)
downloadsos-b6c51c5fea8115e658a0a696e2f482739441b637.tar.gz
[networking] consistently list the routing policy rules
The commands used to list the routing policy rules were inconsistent: - The IPv6 routing policy rules were not retrieved in namespaces. - The command used were inconsistent in the file (it's only cosmetic, but making it consistent helps maintenance). Fix this. Signed-off-by: Antoine Tenart <atenart@kernel.org>
-rw-r--r--sos/report/plugins/networking.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py
index 8b7f8ee9..69a7e88f 100644
--- a/sos/report/plugins/networking.py
+++ b/sos/report/plugins/networking.py
@@ -97,8 +97,8 @@ class Networking(Plugin):
"ip -6 route show table all",
"ip -d route show cache",
"ip -d -6 route show cache",
- "ip -4 rule",
- "ip -6 rule",
+ "ip -4 rule list",
+ "ip -6 rule list",
"ip -s -d link",
"ip -d address",
"ifenslave -a",
@@ -209,7 +209,8 @@ class Networking(Plugin):
ns_cmd_prefix + "ip -d address show",
ns_cmd_prefix + "ip route show table all",
ns_cmd_prefix + "ip -s -s neigh show",
- ns_cmd_prefix + "ip rule list",
+ ns_cmd_prefix + "ip -4 rule list",
+ ns_cmd_prefix + "ip -6 rule list",
ns_cmd_prefix + "netstat %s -neopa" % self.ns_wide,
ns_cmd_prefix + "netstat -s",
ns_cmd_prefix + "netstat %s -agn" % self.ns_wide,