diff options
author | Antoine Tenart <atenart@kernel.org> | 2022-02-16 17:42:12 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2022-02-17 16:36:13 -0500 |
commit | 2c1d0ff547a0ae3500f7b6d8479f801fd455be00 (patch) | |
tree | 031710ad393916dc28375e8c4101e74899ac9b0c | |
parent | b6c51c5fea8115e658a0a696e2f482739441b637 (diff) | |
download | sos-2c1d0ff547a0ae3500f7b6d8479f801fd455be00.tar.gz |
[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>
-rw-r--r-- | sos/report/plugins/networking.py | 2 |
1 files changed, 2 insertions, 0 deletions
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, |