U
    -_g                     @   s&   d dl mZmZ G dd deeZdS )    )PluginUbuntuPluginc                   @   s,   e Zd ZdZdZdZdZdZdZdd Z	dS )	MicroOVNzThe MicroOVN plugin collects the current status of the microovn
    snap.

    It will collect journald logs as well as output from various microovn
    commands.
    zMicroOVN Snapmicroovn)ZnetworkZvirt)r   c                 C   s0   | j dd ddddg}| dd |D  d S )	Nzsnap.microovn.*)Zunitszcluster listZstatuszcertificates listz	--versionc                 S   s   g | ]}d | qS )z	microovn  ).0Zsubcmdr   r   =/usr/lib/python3/dist-packages/sos/report/plugins/microovn.py
<listcomp>&   s    z"MicroOVN.setup.<locals>.<listcomp>)Zadd_journalZadd_cmd_output)selfZmicroovn_subcmdsr   r   r   setup   s    
zMicroOVN.setupN)
__name__
__module____qualname____doc__Z
short_descZplugin_nameZprofilesZpackagesZcommandsr   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   <module>   s   