Skip to content

Commit

Permalink
[HBN] Add additional hbn related commands and log files.
Browse files Browse the repository at this point in the history
Signed-off-by: Hareesh Puthalath <[email protected]>
  • Loading branch information
hareeshpc committed Oct 29, 2024
1 parent 5787b9f commit 0b0f05b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion sos/report/plugins/hbn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class HBN(Plugin, IndependentPlugin):

short_desc = 'HBN (Host Based Network)'
short_desc = 'HBN (Host Based Networking)'
plugin_name = "hbn"
packages = ('hbn-repo',)

Expand All @@ -21,4 +21,20 @@ def setup(self):
'/etc/mellanox',
'/var/log/doca/hbn',
'/var/lib/hbn/etc/cumulus',
'/var/log/sfc-install.log',
'/usr/lib/udev' # HBN udev rules
'/tmp/sf_devices', # sf devices renamed by HBN udev rules

Check warning

Code scanning / CodeQL

Implicit string concatenation in a list Warning

Implicit string concatenation. Maybe missing a comma?
'/tmp/sfr_devices', # sf representor devices renamed by HBN udev rules
'/tmp/sfc-activated',
'/tmp/.BR_*', # temp files created for updating hbn.conf
'/tmp/.ENABLE_*',
'/tmp/.LINK_*',
])

self.add_journal(units="sfc")
self.add_journal(units="sfc-state-propagation")

self.add_cmd_output([
"mlnx-sf -a show",
"mlnx-sf -a show --json --pretty",
])

0 comments on commit 0b0f05b

Please sign in to comment.