Ë
    Û1jŸ	  ã                   ó,   — d dl mZmZ  G d„ dee«      Zy)é    )ÚPluginÚIndependentPluginc                   ó,   — e Zd ZdZdZdZdZdZd„ Zd„ 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        ddd¬«      5 }|D ]E  }|j                  d«      sŒ| j                  |j                  «       d   j	                  d«      «       ŒG 	 d d d «       | j                  d	dg«       | j                  g d
¢«       y # 1 sw Y   Œ0xY w# t
        $ r}| j                  d|› �«       Y d }~ŒUd }~ww xY w)Nz/etc/bird.confÚrzutf-8)ÚencodingÚlogé   ú"zUnable to parse bird.conf: z/etc/bird/*)zbirdc show statuszbirdc show memoryzbirdc show protocols allzbirdc show interfaceszbirdc show route allzbirdc show symbolszbirdc show bfd sessionszbirdc show babel interfaceszbirdc show babel neighborszbirdc show babel entrieszbirdc show babel routeszbirdc show ospfzbirdc show ospf neighborszbirdc show ospf interfacezbirdc show ospf topologyzbirdc show ospf state allzbirdc show ospf lsadbzbirdc show rip interfaceszbirdc show rip neighborszbirdc 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Â9B>c                 ó*   — | j                  ddd«       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ò%óN0r    r   N)Úsos.report.pluginsr   r   r   r)   r    r   ú<module>r+      s   ð÷ 9ô50ˆ6Ð$õ 50r    