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']
class insights.parsers.mlx4_port.Mlx4Port(context)[source]

Bases: Parser

Parse the contents of the mlx4_port file

parse_content(content)[source]

This method must be implemented by classes based on this class.