
    -_g
                     ,    d dl mZmZ  G d dee      Zy)    )PluginIndependentPluginc                   "    e Zd ZdZdZdZdZd Zy)
InfinibandzInfiniband information
infiniband)hardware)zlibibverbs-utilsopensmrdmazinfiniband-diagsc           
      .   | j                  g d       | j                  d       | j                  g d       g d}d}| j                  |      r| j                  |      ng }|D ]  }|j	                  d      r| j                  ||z   dz         D ]  }||z   dz   |z   d	z   }	 t        |d
d      5 }|j                         }|dk7  r
	 d d d        @	 d d d        ||z   dz   |z   dz   }		 t        |	d
d      5 }
|
j                         }|j                  d      s
	 d d d        	 d d d        d| d| }| j                  |D cg c]	  }| d|  c}         y # 1 sw Y   xY w# t        $ r Y w xY w# 1 sw Y   UxY w# t        $ r Y w xY wc c}w )N)z/etc/ofed/openib.confz/etc/ofed/opensm.confz	/etc/rdmaz/var/log/opensm*)ibv_deviceszibv_devinfo -vibstatibstatus
ibswitches)ibhosts
iblinkinfosminfo	perfqueryz/sys/class/infiniband/hfiz/portsz/ports/z/link_layerrzUTF-8)encodingzInfiniBand
z/statez	: ACTIVE
z-C z -P  )	add_copy_specadd_cmd_output
path_isdirlistdir
startswithopenreadlineIOErrorendswith)self
ports_cmds	ib_sysdirib_devsibdevportlfilelink_fp
link_layersfilestate_fpstateoptscs                 ?/usr/lib/python3/dist-packages/sos/report/plugins/infiniband.pysetupzInfiniband.setup   s    
 	 	-. 
 	

 -	-1__Y-G$,,y)R 	IE &Y%6%AB I!E)I5<}LeS7; %w%,%5%5%7
%7$% %7% "E)I5<xGeS7; %x ( 1 1 3$~~l;$% %;% UG4v.##J$Gqs!D6]$GH+I	I% %  
% %   %Hsf   "E(0EE(E((F6#E7F#FFE%!E((	E43E47F <F	FFN)__name__
__module____qualname__
short_descplugin_nameprofilespackagesr0        r/   r   r      s    )JKHIH6Ir9   r   N)sos.report.pluginsr   r   r   r8   r9   r/   <module>r;      s    9>I* >Ir9   