3 ܓi@s.ddlZddlmZmZGdddeeZdS)N)PluginIndependentPluginc@s$eZdZdZdZdZdZddZdS)ArcConfz The ArcConf plugin is meant for sas adapters, and will collect logs and information for each RAID adapter discovered on the system. z+arcconf Integrated RAID adapter informationarcconfc Cs|jd}|ddkrxn|djD]^}yBtjd|jd}|jd}|rh|jd|d|d gWq$tk rw$Yq$Xq$WdS) Nz arcconf listZstatusroutputz^[\s]*Controller (\d)+zarcconf getconfig zarcconf GETLOGS z UART)Zcollect_cmd_output splitlinesrematchgroupsplitZadd_cmd_outputAttributeError)selfZ listarcconfliner Z controller_idr/usr/lib/python3.6/arcconf.pysetups   z ArcConf.setupN)r)__name__ __module__ __qualname____doc__Z short_descZ plugin_nameZcommandsrrrrrrs r)r Zsos.report.pluginsrrrrrrr s