Mlx4Port Combiner for the Mlx4Port Parser

Combiner for the insights.parsers.mlx4_port.Mlx4Port parser.

This parser is multioutput, one parser instance for each port file. This combiner puts all of them back together and presents them as a dict where the keys are the port names, and the contents of the port name file are the lines in each file stored as a list.

This class inherits all methods and attributes from the dict object.


>>> type(mlx4port)
<class 'insights.combiners.mlx4_port.Mlx4Port'>
>>> mlx4port['mlx4_port1']
>>> sorted(mlx4port.keys())
['mlx4_port1', 'mlx4_port2']
class insights.combiners.mlx4_port.Mlx4Port(mlx4_port)[source]

Bases: dict

Combiner for the mlx4_port parser.