idB ,ddlmZmZGddeeZy))PluginIndependentPluginc"eZdZdZdZdZdZdZy) InfinibandzInfiniband information infiniband)hardware)zlibibverbs-utilsopensmrdmazinfiniband-diagsc |jgd|jd|jgdgd}d}|j|r|j|ng}|D]} |j dr|j||zdzD]} t ||zdz|zd z}|j}|j|d k7rA t ||zdz|zd z}|j} |j| jd sd |d|} |j|D cgc] } | d|  c} y#t $rYwxYw#t $rYwxYwcc} w)N)z/etc/ofed/openib.confz/etc/ofed/opensm.confz /etc/rdmaz/var/log/opensm*) ibv_deviceszibv_devinfo -vibstatibstatus ibswitches)ibhosts iblinkinfosminfo perfqueryz/sys/class/infiniband/hfiz/portsz/ports/z /link_layerz InfiniBand z/statez : ACTIVE z-C z -P  ) add_copy_specadd_cmd_output path_isdirlistdir startswithopenIOErrorreadlinecloseendswith) self ports_cmds IB_SYS_DIRibsibportp link_layersstateoptscs ?/usr/lib/python3/dist-packages/sos/report/plugins/infiniband.pysetupzInfiniband.setups   -.    . *.//**Edll:&2 OB  }}U# Z"_x%?@ OZ"_y84?*+,AZZ\  /Z"_y84?(JKA  ~~l34)+D1##*$MQ4%8$MN/ O O%Ns*E E3E+ EE E('E(N)__name__ __module__ __qualname__ short_desc plugin_nameprofilespackagesr-r,rrs)JKHIH:Or6rN)sos.report.pluginsrrrr5r6r,r8s9BO*BOr6