+
    i  c                   s.    ^ RI HtHt  ! R R]]4      tR# )i    )PluginIndependentPluginc                   s<   a  ] tR t^t o RtRtRtRtR tR t	Rt
V tR# )	LibvirtClientz%client for libvirt virtualization APIZvirshc           	     s|   V P                  R R.4       Rp. ROpV F  pV P                  V RV 2RR7       K  	  V P                  V R2RRR7       V P                  V R	2RR7      pVR
,          ^ 8X  dz   VR,          P                  4        F^  pV P                  RV 24      pVR
,          ^ 8X  g   K'  VR,          P                  4       ^ ,          pV P                  RV 2RV 2R7       K`  	  R F  pT P	                  V RV R2VR9   d   RMR,          RR7      p	V	R
,          ^ 8X  g   K<  V	R,          P                  4       p
 V
^ ,          P                  4       P                  R4      p\        R T
R,          4       F5  pTP                  4       T,          pT P                  T RT RT 2RR7       K7  	  K  	  V P                  V R2RR7      pVR
,          ^ 8X  dn   VR,          P                  4       R,          p\        R V4       F>  pVP                  4       ^,          pR F  pV P                  V RV RV 2RR7       K   	  K@  	  V P                  V R2RR7      pVR
,          ^ 8X  d9   VR,          P                  4        F  pV P                  V RV 2RR7       K  	  R# R#   \         d     EK  i ; i)z/root/.cache/virt-manager/*.logz/root/.virt-manager/*.logzvirsh -rZ T)
foregroundz list --allZvirsh_list_all)Ztagsr   z1 list --all --name --state-running --state-pausedZstatusZoutputz	pgrep -f ztaskset -ac -p Ztaskset_)Zsuggest_filenamez-list %sz--allZ ZNamec                     V # N Zx   &=/usr/lib/python3.14/site-packages/sos/report/plugins/virsh.py<lambda>%LibvirtClient.setup.<locals>.<lambda>M   s    !    :i   NNz	-dumpxml c                 r   r   r   r   r   r	   r
   r   W   s    1r   z nodedev-listz nodedev-dumpxml N)ZdomcapabilitiesZcapabilitiesZnodeinfozfreecell --allznode-memory-tuneZversionzpool-capabilitiesZ
nodecpumapzmaxvcpus kvmZsysinfoznodedev-list --tree)netZnwfilterpool)r   r   )ZdumpxmlZdominfoZ
domblklist)	Zadd_copy_specZadd_cmd_outputZexec_cmdZ
splitlinesZcollect_cmd_outputZsplitZindexZ	ExceptionZfilter)selfZcmdZsubcmdsZsubcmdZvmsZvmZpidZpZkZk_listZk_linesZposZjZnameZdomains_outputZdomains_linesZdomainZoptZnodedev_outputs   &                  r	   setupZLibvirtClient.setup   s   -'
 	
 
 F3%q 1dC  	se;/!1d 	 	D mmse $- -9=  ?x=A(m..0mmit$45x=A% H00215A'')!-+3B4 ( : 1 -A,,uAaS-A01_0D FMJL.N8< - >F h1$ *557!!***,226:C  WR[9A779S>D''3%q9TF(C37 ( 9 : -& #k':tL(#q(*84??A"EM m<*?C''3%qQvh(?37 ( 9 @ = #m'<N(#q(&x0;;=##e,TF3# $  > )' ! s   &J++J;:J;c                sH    R pRR.pV F  pV P                  W1R4       K  	  R# )z"(\s*passwd\s*=\s*\")([^\"]*)(\".*)z"/root/\.cache/virt-manager/.*\.logz/root/\.virt-manager/.*\.logz
\1******\3N)Zdo_path_regex_sub)r   Z	match_expZvirsh_path_expsZpath_exps   &   r	   postprocZLibvirtClient.postproce   s2    9	1+
 (H ""8F (r   r   N)ZsystemZvirt)zlibvirt-clientzlibvirt-clients)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z
short_descZplugin_nameZprofilesZpackagesr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r	   r   r      s,     8JK!H5HN`G Gr   r   N)Zsos.report.pluginsr    r   r   r   r   r	   <module>r      s    9gGF- gGr   