HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/bird.cpython-310.pyc
o

-�_g�	�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�IndependentPluginc@s0eZdZdZdZdZdZdZdd�Zdd�Z	d	S)
�Birdz�BIRD is an Internet Routing Daemon used in many *nix and nix-like
    distributions. This plugin will capture the configuration files for a local
    bird installation, as well as runtime information and metrics.
    �bird)�network)rc
Cs�z/tdddd��}|D]}|�d�r|�|��d�d��qWd�n1s)wYWntyI}z|�d|���WYd}~nd}~ww|�d	dg�|�gd
��dS)Nz/etc/bird.conf�rzutf-8)�encoding�log��"zUnable to parse bird.conf: z/etc/bird/*)zbirdc show statuszbirdc show memoryzbirdc show protocols allzbirdc show interfaceszbirdc show route allzbirdc show symbolszbirdc show bfd sessionszbirdc show babel interfaceszbirdc show babel neighborszbirdc show babel entrieszbirdc show babel routeszbirdc show ospfzbirdc show ospf neighborszbirdc show ospf interfacezbirdc show ospf topologyzbirdc show ospf state allzbirdc show ospf lsadbzbirdc show rip interfaceszbirdc show rip neighborszbirdc show static)�open�
startswith�
add_copy_spec�split�strip�	Exception�
_log_debug�add_cmd_output)�self�bfile�line�err�r�9/usr/lib/python3/dist-packages/sos/report/plugins/bird.py�setups$
�������z
Bird.setupcCs|�ddd�dS)Nz/etc/bird(.*)?.confz((.*password)\s\"(.*)\"(.*))z\2 *******\4)�do_path_regex_sub)rrrr�postprocAs�z
Bird.postprocN)
�__name__�
__module__�__qualname__�__doc__�plugin_name�profiles�packages�servicesrrrrrrrs'rN)�sos.report.pluginsrrrrrrr�<module>s