Mlx4Port - file /sys/bus/pci/devices/*/mlx4_port[0-9]
This module provides processing for the contents of each file
matching the glob spec /sys/bus/pci/devices/*/mlx4_port[0-9]
.
Sample contents of this file looks like:
ib
or:
eth
- insights.parsers.mlx4_port.name
The mlx4 port name.
- Type:
str
- insights.parsers.mlx4_port.contents
List of string values representing each line in the file.
- Type:
list
Examples
>>> type(mlx4_port)
<class 'insights.parsers.mlx4_port.Mlx4Port'>
>>> mlx4_port.name
'mlx4_port1'
>>> mlx4_port.contents
['ib']