
    -_g                     h    d dl mZmZmZmZmZ  G d de      Z G d dee      Z G d deee      Zy)	    )PluginRedHatPluginDebianPluginUbuntuPlugin	PluginOptc                   0    e Zd ZdZdZdZ eddd      gZy)	PxezPXE servicepxe)sysmgmtnetworktftpbootFz"collect content from tftpboot path)defaultdescN)__name__
__module____qualname__
short_descplugin_nameprofilesr   option_list     8/usr/lib/python3/dist-packages/sos/report/plugins/pxe.pyr	   r	      s'    JK%H*e;	=Kr   r	   c                   &     e Zd ZdZdZ fdZ xZS )	RedHatPxe)z/usr/sbin/pxeos)zsystem-config-netboot-cmdc                     t         |           | j                  d       | j                  d       | j	                  d      r| j                  d       y y )Nz/usr/sbin/pxeos -lz/etc/dhcpd.confr   z	/tftpboot)supersetupadd_cmd_outputadd_copy_spec
get_optionself	__class__s    r   r   zRedHatPxe.setup   sI    01,-??:&{+ 'r   )r   r   r   filespackagesr   __classcell__r$   s   @r   r   r      s     E-H, ,r   r   c                   "     e Zd ZdZ fdZ xZS )	DebianPxe)z	tftpd-hpac                     t         |           | j                  ddg       | j                  d      r| j                  d       y y )Nz/etc/dhcp/dhcpd.confz/etc/default/tftpd-hpar   z/var/lib/tftpboot)r   r   r    r!   r"   s    r   r   zDebianPxe.setup)   sG    "$
 	 ??:&23 'r   )r   r   r   r&   r   r'   r(   s   @r   r*   r*   %   s    H4 4r   r*   N)	sos.report.pluginsr   r   r   r   r   r	   r   r*   r   r   r   <module>r-      s9   9 9& 
,\ 
,4\< 4r   