From bdab65229e4a9ebc4bd2a461279ee6881573aeed Mon Sep 17 00:00:00 2001 From: Michael Filanov Date: Mon, 9 Sep 2024 13:40:56 +0300 Subject: [PATCH] Add HBN plugin HBN stand for a host based networking --- sos/report/plugins/hbn.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sos/report/plugins/hbn.py diff --git a/sos/report/plugins/hbn.py b/sos/report/plugins/hbn.py new file mode 100644 index 0000000000..e425dd4afa --- /dev/null +++ b/sos/report/plugins/hbn.py @@ -0,0 +1,24 @@ +# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. +# This file is part of the sos project: https://github.com/sosreport/sos +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions of +# version 2 of the GNU General Public License. +# +# See the LICENSE file in the source distribution for further information. + +from sos.report.plugins import Plugin, IndependentPlugin + + +class HBN(Plugin, IndependentPlugin): + + short_desc = 'HBN (Host Based Network)' + plugin_name = "hbn" + packages = ('hbn-repo',) + + def setup(self): + self.add_copy_spec([ + '/etc/mellanox', + '/var/log/doca/hbn', + '/var/lib/hbn/etc/cumulus', + ])