diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2021-01-24 12:04:14 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-01-25 11:46:00 -0500 |
commit | e124e2255a10b450b24a73c47253886bfd3e653b (patch) | |
tree | abba0ce733d8783d7af66de405a0174c828abbb1 | |
parent | 05f80bef5f866daa7fa7d86b49e1ea41b2e63d0d (diff) | |
download | sos-e124e2255a10b450b24a73c47253886bfd3e653b.tar.gz |
[networking] collect devlink info
Collect both devlink info and params, as well as details per each device.
Related to: #2383
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/networking.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index 5bdb697e..506b748b 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -102,8 +102,16 @@ class Networking(Plugin): "ip neigh show nud noarp", "biosdevname -d", "tc -s qdisc show", + "devlink dev param show", + "devlink dev info", ]) + devlinks = self.collect_cmd_output("devlink dev") + if devlinks['status'] == 0: + devlinks_list = devlinks['output'].splitlines() + for devlink in devlinks_list: + self.add_cmd_output("devlink dev eswitch show %s" % devlink) + # below commands require some kernel module(s) to be loaded # run them only if the modules are loaded, or if explicitly requested # via --allow-system-changes option |