o
    Û1jÚ  ã                   @   s&   d dl mZmZ G dd„ deeƒZdS )é    )ÚPluginÚIndependentPluginc                   @   s0   e Zd ZdZdZdZdZdZdd„ Zdd	„ Z	d
S )ÚKeazó
    Kea is the next generation of DHCP software, developed by Internet
    Systems Consortium (ISC). It supports both the DHCPv4 and DHCPv6 protocols
    along with their extensions, e.g. prefix delegation and dynamic updates to
    DNS.
    z!Kea DHCP and DDNS server from ISCÚkea)r   z
kea-commonzisc-keazkea-dhcp4-serverzkea-dhcp6-server)zkea-ctrl-agentzkea-dhcp-ddnsz	kea-dhcp4z	kea-dhcp6c                 C   sJ   |   d¡ |  dg¡ |  d¡r|  dg¡ n|  dg¡ |  dg¡ d S )Nz/etc/kea/kea-api-passwordú
/etc/kea/*Úall_logsz/var/log/kea/kea*.log*z/var/log/kea/kea*.logzkeactrl status)Úadd_forbidden_pathÚadd_copy_specÚ
get_optionÚadd_cmd_output©Úself© r   ú8/usr/lib/python3/dist-packages/sos/report/plugins/kea.pyÚsetup   s   
ÿ
ÿÿ
ÿz	Kea.setupc                 C   s   |   ddd¡ dS )z format is "password": "kea", r   z(^\s*"password":\s*)(".*"),z
\1********N)Údo_path_regex_subr   r   r   r   Úpostproc/   s
   ýzKea.postprocN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
short_descÚplugin_nameÚpackagesÚservicesr   r   r   r   r   r   r      s    r   N)Úsos.report.pluginsr   r   r   r   r   r   r   Ú<module>   s   
