a >h @s&ddlmZmZGdddeeZdS))PluginIndependentPluginc@s0eZdZdZdZdZdZdZddZddZ d S) 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)rc Csz^tdddd<}|D]&}|dr||ddqWdn1sR0YWn4ty}z|d|WYd}~n d}~00|d dg|gd dS) Nz/etc/bird.confrzutf-8)encodinglog"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 startswithZ add_copy_specsplitstrip ExceptionZ _log_debugZadd_cmd_output)selfZbfilelineerrr;/usr/lib/python3.9/site-packages/sos/report/plugins/bird.pysetups <&z Bird.setupcCs|ddddS)Nz/etc/bird(.*)?.confz((.*password)\s\"(.*)\"(.*))z \2 *******\4)Zdo_path_regex_sub)rrrrpostprocAsz Bird.postprocN) __name__ __module__ __qualname____doc__Z plugin_nameZprofilesZpackagesZservicesrrrrrrrs'rN)Zsos.report.pluginsrrrrrrr s