
    -_g	                     ,    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)BirdzBIRD 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OO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06$ 50r    