1
0
forked from rpms/sos
sos/0009-networking-list-VRFs.patch

53 lines
1.8 KiB
Diff

From 2c1d0ff547a0ae3500f7b6d8479f801fd455be00 Mon Sep 17 00:00:00 2001
From: Antoine Tenart <atenart@kernel.org>
Date: Wed, 16 Feb 2022 17:42:12 +0100
Subject: [PATCH 09/10] [networking] list VRFs
Add command listing VRFs and their associated tables; including in
network namespaces. This information could be retrieved from reading the
`ip -d address show` output, but it is hard to see quickly. As the `ip
vrf show` output is quite small, let's include it.
If the system has two VRFs, the output will look like:
Name Table
-----------------------
vrf0 42
vrf1 43
And if no VRF is defined the output will look like:
Name Table
-----------------------
No VRF has been configured
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
---
sos/report/plugins/networking.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py
index 69a7e88f..2ab5d840 100644
--- a/sos/report/plugins/networking.py
+++ b/sos/report/plugins/networking.py
@@ -99,6 +99,7 @@ class Networking(Plugin):
"ip -d -6 route show cache",
"ip -4 rule list",
"ip -6 rule list",
+ "ip vrf show",
"ip -s -d link",
"ip -d address",
"ifenslave -a",
@@ -211,6 +212,7 @@ class Networking(Plugin):
ns_cmd_prefix + "ip -s -s neigh show",
ns_cmd_prefix + "ip -4 rule list",
ns_cmd_prefix + "ip -6 rule list",
+ ns_cmd_prefix + "ip vrf show",
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