+
    i	  c                   s.    ^ RI HtHt  ! R R]]4      tR# )i    )PluginIndependentPluginc                   s@   a  ] tR t^t o RtRtRtRtRtR t	R t
RtV tR# )	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.
birdc                s    \        R RRR7      ;_uu_ 4       pV FQ  pVP                  R4      '       g   K  V P                  VP                  4       ^,          P	                  R4      4       KS  	  RRR4       T P                  RR .4       T P                  . R	O4       R#   + '       g   i     L8; i  \
         d   pT P                  RT 24        Rp?L_Rp?ii ; i)
z/etc/bird.confZrzutf-8)ZencodingZlogZ"Nz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)ZopenZ
startswithZadd_copy_specZsplitZstripZ	ExceptionZ
_log_debugZadd_cmd_output)selfZbfileZlineZerrs   &   </usr/lib/python3.14/site-packages/sos/report/plugins/bird.pysetupZ
Bird.setup   s    	A&g>>%!Du--**4::<?+@+@+EF " ? 	
 	
 	 
 	 ?>
  	AOO9#?@@	As9   B3 B 9B 0B3  B0	+B3 0B3 3C>CCc                s,    V P                  R RR4       R# )z/etc/bird(.*)?.confz((.*password)\s\"(.*)\"(.*))z\2 *******\4N)Zdo_path_regex_sub)r   s   &r   postprocZBird.postprocA   s    4>.	0     N)Znetwork)r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Zplugin_nameZprofilesZpackagesZservicesr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s0     
 KHHH%N0 0r   r   N)Zsos.report.pluginsr    r   r   r	   r   r   <module>r
      s    9506$ 50r   