3 ܓi)@s&ddlmZmZGdddeeZdS))Plugin RedHatPluginc@s0eZdZdZdZdZd Zd Zd Zd Z ddZ dS) FrraG FRR is a routing project that provides numerous traditional routing protocols for Linux platforms. In particular, OpenStack uses FRR to provide BGP functionality for the overcloud nodes. This plugin is primarily designed the deployment of FRR within OSP environments, which deploy FRR in a container. zFrr routing servicefrrnetwork/etc/frr/zebra.confc CsXd}|jd|dg|jdrTdddddd d d d d ddg }|jdd|DdddS)Nz*/var/lib/config-data/ansible-generated/frrz /etc/frr/rzshow bgp detailzshow bgp neighborszshow bgp summaryz show historyzshow ip bgp detailzshow ip bgp neighborszshow ip bgp summaryz show ip bgpz show ip routezshow ipv6 routezshow running-configz show versioncSsg|]}d|dqS)z vtysh -c '').0Zsubcmdr r /usr/lib/python3.6/frr.py 7szFrr.setup..)Z container)Z add_copy_specZcontainer_existsZadd_cmd_output)selfZvar_ansible_genZsubcmdsr r r setups(   z Frr.setupN)r)r)r)r) __name__ __module__ __qualname____doc__Z short_descZ plugin_nameZprofilesfilesZpackagesZ containersrr r r r r srN)Zsos.report.pluginsrrrr r r r  s