�
i��d� � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�RedHatPluginc �. � e Zd ZdZdZdZdZdZdZdZ d� Z
y) �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 service�frr)�network)z/etc/frr/zebra.conf)r c � � | j d� | j d� r*g d�}| j |D �cg c] }d|� d���
c}d�� y y c c}w )Nz /etc/frr/r )zshow bgp detailzshow bgp neighborszshow bgp summaryzshow historyzshow ip bgp detailzshow ip bgp neighborszshow ip bgp summaryzshow ip bgpz
show ip routezshow ipv6 routezshow running-configzshow versionz
vtysh -c '�')� container)�
add_copy_spec�container_exists�add_cmd_output)�self�subcmds�subcmds �8/usr/lib/python3/dist-packages/sos/report/plugins/frr.py�setupz Frr.setup s^ � ����;�'�� � ��'�
�G�
���6=�>�F�:�f�X�Q�'�>��
�
�! (��" |