a >h~ @s.ddlmZmZmZmZGdddeeZdS))PluginIndependentPlugin SoSPredicate PluginOptc@s6eZdZdZdZdZdZeddeddgZ d d Z dS) Conntrackz)conntrack - netfilter connection tracking conntrack)networkZcluster)zconntrack-toolsrZ conntrackd namespacesNz0Number of namespaces to collect, 0 for unlimited)defaultZval_typeZdesccCs|d|gdt|gdddid}|jddg|d d }|d }|j|d D],}||d }||d||dqZdS)Nz/etc/conntrackd/conntrackd.conf)zconntrackd -s networkzconntrackd -s cachezconntrackd -s runtimezconntrackd -s linkzconntrackd -s rsqueuezconntrackd -s queuezconntrackd -s ctzconntrackd -s expect)Z nf_conntrackZnf_conntrack_netlinkZnf_defrag_ipv4Znf_defrag_ipv6Z nfnetlinkkmodsall)r requiredzconntrack -L -o extendedz conntrack -S)Zpredzip netns exec r )Zns_max )Z add_copy_specZadd_cmd_outputrZ get_optionZget_network_namespaces)selfZct_predZ cmd_prefixZnsps namespaceZ ns_cmd_prefixr@/usr/lib/python3.9/site-packages/sos/report/plugins/conntrack.pysetups$    zConntrack.setup) __name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesZpackagesrintZ option_listrrrrrrsrN)Zsos.report.pluginsrrrrrrrrr s