48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
|
From b6c51c5fea8115e658a0a696e2f482739441b637 Mon Sep 17 00:00:00 2001
|
||
|
From: Antoine Tenart <atenart@kernel.org>
|
||
|
Date: Wed, 16 Feb 2022 17:16:48 +0100
|
||
|
Subject: [PATCH 08/10] [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>
|
||
|
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
|
||
|
---
|
||
|
sos/report/plugins/networking.py | 7 ++++---
|
||
|
1 file 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,
|
||
|
--
|
||
|
2.27.0
|
||
|
|