a >h# @s2ddlZddlmZmZmZGdddeeZdS)N)Plugin RedHatPlugin PluginOptc@sZeZdZdZdZdZdZdZedde dd ed de d ed ed de d d gZ ddZ dS)Skydivez.Skydive network topology and protocol analyzerZskydive)network)z/usr/bin/skydive/etc/skydive/skydive.ymlz' (password visible in process listings)usernamezskydive username)defaultZval_typeZdescpasswordzskydive passwordanalyzerzskydive analyzer addresscCs|d|d|dp4tddp4tdd}|dpVtddpVtd d}|d pltd d }t|||gs|jd |tjd<|tjd<|tjd <d}||dS)Nrz/var/log/skydive.logrZSKYDIVE_USERNAMEr Z OS_USERNAMEr ZSKYDIVE_PASSWORDZ OS_PASSWORDr ZSKYDIVE_ANALYZERzlocalhost:8082ziSome or all of the skydive params are not set properly. Skydive status command may not work as expected.zskydive client status) Z add_copy_specZ get_optionosgetenvallZsoslogZwarningenvironZadd_cmd_output)selfrr r Z status_cmdr>/usr/lib/python3.9/site-packages/sos/report/plugins/skydive.pysetup%s,              z Skydive.setupN) __name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesfilesZpassword_warn_textrstrZ option_listrrrrrrs  r)r Zsos.report.pluginsrrrrrrrr s