| Server IP : 65.1.209.187 / Your IP : 216.73.216.144 Web Server : nginx/1.24.0 System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64 User : ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
�
([Qh� � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�IndependentPluginc �, � e Zd ZdZdZdZdZdZd� Zd� Z y)�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)r c � � t ddd�� 5 }|D ]E }|j d� s�| j |j � d j d� � �G d d d � | j d dg� | j g d
�� y # 1 sw Y �0xY w# t
$ r}| j
d|� �� Y d }~�Ud }~ww xY w)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�errs �9/usr/lib/python3/dist-packages/sos/report/plugins/bird.py�setupz
Bird.setup s� � � A��&��g�>�
G�%�!� G�D����u�-��*�*�4�:�:�<��?�+@�+@��+E�F�G�
G�
�����
� �
���
� �
G�
G��
� A��O�O�9�#��?�@�@�� A�s3 �B �B�3B�B �B�B � B>� B9�9B>c �* � | j ddd� y )Nz/etc/bird(.*)?.confz((.*password)\s\"(.*)\"(.*))z\2 *******\4)�do_path_regex_sub)r s r �postprocz
Bird.postprocA s � ����4�>�.� 0� N)
�__name__�
__module__�__qualname__�__doc__�plugin_name�profiles�packages�servicesr r � r r r r s( � ��
�K��H��H��H�%�N0r r N)�sos.report.pluginsr r r r) r r �<module>r+ s �� 9�50�6�$� 50r