o
    id
                     @   s*   d dl mZmZmZ G dd deeZdS )    )PluginUbuntuPluginSoSPredicatec                   @   s(   e Zd ZdZdZdZdZdZdd ZdS )	LXDzLXD container hypervisorlxd)	container)r   )lxcr   c                 C   s   g d}t | |ddid}| jjd}|r@|d dkr@| jd|d	 | g d
 | ds8| ddg d S | dg d S | ddg | jg d|d	 | jdgdd d S )N)bpfilterebtable_filterebtablesip6table_filterip6table_mangleip6table_natip6table_raw
ip6_tablesiptable_filteriptable_mangleiptable_natiptable_rawnf_nat	nf_tableskmodsall)r   requiredr   pkg_managersnapzlxd.buginfo)pred)z/var/snap/lxd/common/configz /var/snap/lxd/common/global-confz#/var/snap/lxd/common/lxc/local.confz&/var/snap/lxd/common/lxd/logs/*/*.confall_logsz#/var/snap/lxd/common/lxd/logs/*.logz%/var/snap/lxd/common/lxd/logs/*/*.logz /var/snap/lxd/common/lxd/logs/**z/etc/default/lxd-bridgez/var/log/lxd/*)zlxc image listzlxc listzlxc network listzlxc profile listzlxc storage listz)find /var/lib/lxd -maxdepth 2 -type d -lszvar-lxd-dirs.txt)suggest_filename)r   policypackage_managerpkg_by_nameadd_cmd_outputadd_copy_spec
get_option)self	lxd_kmodslxd_predlxd_pkg r)   8/usr/lib/python3/dist-packages/sos/report/plugins/lxd.pysetup   s8   




z	LXD.setupN)	__name__
__module____qualname__
short_descplugin_nameprofilespackagescommandsr+   r)   r)   r)   r*   r      s    r   N)sos.report.pluginsr   r   r   r   r)   r)   r)   r*   <module>   s   
