%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/openvswitch.cpython-312.pyc

�

i��deA��x�ddlmZmZmZmZddlmZddlZGd�de�ZGd�dee�Z	Gd�d	eee�Z
y)
�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin)�environNc��eZdZdZdZdZd�Zy)�OpenVSwitchzOpenVSwitch networking�openvswitch)�network�virtc�t�|jd�}ddg}|jd�}|ddk(xr|djd�}td	D�cgc]}|j	|���c}�}d
}gd�}tjd�r$|jtjd��|s0|j|D�	cgc]}	|j|	d
���c}	�n|j|�|jgd��|j|jdd�|jdd�|jdd�g�tjd�}
|
r!|j|j|
d��|jddd��|jgd��|jdd��|jdd��|jd��|jd��|jd ��|jd!��|jd"��|jd#��|r�|j|�|jgd$��|jd%��d&D]}|jd'|zg��|jd(�}|ddk(rW|dj�D]A}
tjd)|
�}|s�|j!d*�}|jd+|zg��C|jd,�}|ddk(rG|dj�D]1}|j|�d-|��|�d.|��|�d/|��|�d0|��|�d1|��g��3|jd2�}|jd3�}|ddk(�r�|dj�D�]�}|j|�d4|��|�d5|��|�d6|��|�d7|��|�d8|��d9|zd:|zd;|zd<|zd=|zd>|zd?|zg�gd@�}dAdBdCdDdEdFdG�}dH|z}|j|�}g}|dj�D]N}dI|vs�||j#dJ�dKz|j#dL�}|j%dMdN�j'dO�}�P|dNgk(r�|dr�|dj�}g}|D]S}dP|vs�|j'dQ�dKj'dR�}t)t+|ddS�t+|dKdS�dKz�}�U|D]}||vs�|j||��|D]B} | |vs�|jdT| �dU|��dT| �dV|��dT| �dW|��dT| �dX|��dT| �dY|��dT| �dZ|��g��D|j-d[|z�}!|!ddk(rP|!dj�D]:}
|jd\|
zd]|
zd^|
zd_|
zg�|s�'|jd`|
z��<|rH|j-da|z�}"|"ddk(r,|"dj�D]}#|jd`|#z��|s��q|j|�db|��|�dc|��|�dd|��|�de|��|�df|��g�|j|�dg|���}$|$ddk(r4|$dj'�dKd}%|%D]}&|j|�dh|&��g��|jdi|z�}'|'ddk(s��|'dj'�dKd}(|(D]g})|j|�dj|)��|�dk|)��|�dl|�dm|)��|�dn|�dm|)��|�do|�dm|)��|�dp|�dm|)��|�dq|�dm|)��|�dr|�dm|)��|�ds|�dm|)��|�dt|�dm|)��g
��i���yycc}wcc}	w)uN�all_logsz/var/log/openvswitch/z/usr/local/var/log/openvswitch/z8ovs-vsctl -t 5 get Open_vSwitch . other_config:dpdk-init�statusr�outputz"true")z6windgate-fp�nuage-openvswitchz
ovs-appctl)z?/etc/systemd/system/multi-user.target.wants/openvswitch.servicez./etc/sysctl.d/60-6wind-system-auto-reboot.confz/etc/openvswitch/system-id.confz/etc/openvswitch/*.dbz*/etc/ld.so.conf.d/linux-fp-sync-fptun.confz$/etc/NetworkManager/conf.d/fpn0.confz/etc/default/openvswitchz/etc/logrotate.d/openvswitchz/etc/linux-fp-sync.envz/etc/fp-daemons.envz/etc/fp-vdev.iniz/etc/fpm.envz/etc/6WINDGate/fp.configz/etc/6WINDGate/fpnsdk.configz/etc/dms.d/fp-dms.confz/etc/dms.d/fpmd-dms.confz/etc/dms.d/fpsd-dms.confz/etc/fast-path.envz/etc/fps-fp.env�
OVS_LOGDIRz*.log)z!/run/openvswitch/ovsdb-server.pidz!/run/openvswitch/ovs-vswitchd.pidz&/run/openvswitch/ovs-monitor-ipsec.pidz/usr/local/etc/openvswitchzconf.dbz/etc/openvswitchz/var/lib/openvswitch�	OVS_DBDIR�openvswitch_daemon_log�openvswitch_server_log)z%/var/log/openvswitch/ovs-vswitchd.logz%/var/log/openvswitch/ovsdb-server.log)!zls -laZ /run/openvswitchzls -laZ /dev/hugepages/zls -laZ /dev/vfiozls -laZ /var/lib/vhost_socketszdpdk_nic_bind --statuszdpdk-devbind.py --statuszdriverctl list-deviceszdriverctl list-overrideszovs-appctl bond/listzovs-appctl bond/showzovs-appctl lacp/showzovs-appctl lacp/show-statszovs-appctl coverage/showzovs-appctl ovs/route/showzovs-appctl tnl/arp/showzovs-appctl tnl/ports/show -v�ovs-appctl upcall/showz ovs-vsctl -t 5 list Open_vSwitchzovs-vsctl -t 5 list interfacezovs-vsctl -t 5 list bridgezovs-vsctl -t 5 list datapathz#ovs-appctl dpif-netdev/pmd-rxq-showz%ovs-appctl dpif-netdev/pmd-stats-showz$ovs-appctl dpif-netdev/pmd-perf-showzovs-appctl ofproto/list-tunnelsz,ovs-appctl -t ovs-monitor-ipsec tunnels/showz*ovs-appctl -t ovs-monitor-ipsec xfrm/statez-ovs-appctl -t ovs-monitor-ipsec xfrm/policiesz-ovs-dpctl dump-flows --name -m type=offloadedz'ovs-dpctl dump-flows --name -m type=ovsz/ovs-appctl dpif-netdev/subtable-lookup-prio-getz$ovs-appctl dpif-netdev/dpif-impl-getz*ovs-appctl dpif-netdev/miniflow-parser-getz.ovs-vsctl -t 5 get Open_vSwitch . other_config�openvswitch_other_config)�tagszovs-vsctl -t 5 show�ovs_vsctl_showr
)�unitszopenvswitch-nonetworkzovs-vswitchdzovsdb-serverzovs-configurationzopenvswitch-ipsec)zfp-cli fp-vswitch-statszfp-cli dpdk-core-port-mappingzfp-cpu-usagezfp-cli fp-vswitch-maskszfp-cli fp-vswitch-flowsz
fp-shmem-dpvizfp-cli stats non-zerozfp-cli statszfp-cli dpdk-cp-filter-budgetz ovs-appctl vm/port-detailed-showrzfp-cli nfct4z ovs-appctl vm/port-vip-list-showzfp-shmem-ports -szovs-dpctl show -szfpcmd fp-vswitch-flowszfp-cli fp-vswitch-ports percorezfp-cli dpdk-debug-poolzfp-cli dump-sizezfp-cli conf runtimezfp-cli conf compiledzfp-cli ifacezovs-appctl memory/showzvirtual-accelerator)�filter�mangle�raw�natzfpcmd nf4-rules %szfp-cli fp-vswitch-portsz^([\d]+):[\s]+([^\s]+)�zfp-cli dpdk-cp-filter-budget %szovs-appctl dpctl/dump-dpsz dpctl/show -s z dpctl/dump-flows -m z dpctl/dump-conntrack -m z dpctl/ct-stats-show -m z dpctl/ipf-get-status zovs-vsctl -t 5 list-brzovs-ofctl -t 5 --versionz# bridge/dump-flows --offload-stats z dpif/show-dp-features z
 fdb/show z fdb/stats-show z
 mdb/show zovs-ofctl dump-flows %szovs-ofctl dump-ports-desc %szovs-ofctl dump-ports %szovs-ofctl queue-get-config %szovs-ofctl queue-stats %szovs-ofctl show %szovs-ofctl dump-groups %s)�
OpenFlow10�
OpenFlow11�
OpenFlow12�
OpenFlow13�
OpenFlow14�
OpenFlow15r r!r"r#r$r%)�r����zovs-vsctl -t 5 list bridge %s�	protocols�[r&�]�"�z, zOpenFlow versionszOpenFlow versions �:�z
ovs-ofctl -O z show z
 dump-groups z dump-group-stats z dump-flows z dump-tlv-map z dump-ports-desc zovs-vsctl -t 5 list-ports %szovs-appctl cfm/show %szovs-appctl qos/show %szovs-appctl bond/show %sz"ovs-vsctl get Interface %s optionsz*ovs-appctl netdev-dpdk/get-mempool-info %szovs-vsctl -t 5 list-ifaces %sz evpn/vip-list-show z  bridge/dump-conntracks-summary z! bridge/acl-table ingress/egress z bridge/acl-table z ofproto/show z
 vrf/list z vrf/route-table zovs-appctl evpn/list %sz evpn/mac-table z evpn/arp-table z evpn/dump-flows � z evpn/dhcp-pool-show z evpn/dhcp-relay-show z evpn/dhcp-static-show z evpn/dhcp-table-show z evpn/proxy-arp-filter-list z evpn/show z port/dscp-table )�
get_option�collect_cmd_output�
startswith�any�is_installedr�get�append�
add_copy_spec�	path_join�
add_file_tags�add_cmd_output�add_journal�
splitlines�re�match�group�find�replace�split�range�int�exec_cmd)*�selfr�log_dirs�dpdk_enabled�
check_dpdk�p�check_6wind�actl�files_6wind�ld�	ovs_dbdir�table�	port_list�port�m�	port_name�dp_list_result�dp�br_list_result�ofp_ver_result�br�
flow_versions�ofp_versions�ovs_list_bridge_cmd�br_info�	br_protos�line�br_protos_ln�ofp_version_range�	ver_range�v�protocol�flow�port_list_result�iface_list_result�iface�vrf_list�vrfs�vrf�	evpn_list�evpns�evpns*                                          �@/usr/lib/python3/dist-packages/sos/report/plugins/openvswitch.py�setupzOpenVSwitch.setups����?�?�:�.��
$�-�
��
�.�.�F�H��"�8�,��1�B�"�8�,�7�7��A�	��@�B�A�4�,�,�Q�/�B�C����
��,�;�;�|�$��O�O�G�K�K��5�6�����6>� �02����r�7�+� �
�
���x�(����
�	�	
����N�N�7��C��N�N�-�y�9��N�N�1�9�=�
�	�
�K�K��,�	�����t�~�~�i��C�D����(�(�	
�	�	
���:
�:	�x	
���L�!;�	�	=�	
���1�!1�	�	3�	
���}��-����6��7����~��.����~��.����2��3����2��3�����{�+����!�
�4
���#8��9�;�
D���#�#�%9�E�%A�$B�C�
D�
�/�/�0I�J�I���"�a�'�%�h�/�:�:�<��D����!:�D�A�A��$%�G�G�A�J�	��+�+�=�	�I�-��	��0�0�1L�M���(�#�q�(�$�X�.�9�9�;�
���#�#�-1�2�6�37��<�7;�R�@�6:�B�?�48�"�=�%��
��0�0�1I�J���0�0�1K�L���(�#�q�(�$�X�.�9�9�;�N
���#�#�AE�r�J�59�2�>�(,�b�1�.2�B�7�(,�b�1�-��2�2�R�7�-��2�3�b�8�.��3�'�"�,�.��3�
%�
� !�
�'�&�&�&�&�&�
 ��'F��&J�#��1�1�2E�F���	�#�H�-�8�8�:�N�D�"�d�*�'+�D�I�I�c�N�1�,<�T�Y�Y�s�^�'L��$0�$8�$8��b�$A�$G�$G��$M�	�N����$���)A�(6�x�(@�(K�(K�(M�%� "�I� 1�N��.�$�6� $�
�
�+?� @�� C� I� I�#� N�A�(-�c�!�A�$��m�S��1��r�]�1�_�(M�I�N�
%.�E��#�|�3�%�,�,�\�(�-C�D�E�
*�	�D��y�(��+�+�9=�r�B�@D�b�I�EI�2�N�?C�R�H�AE�r�J�DH�"�M�
-��	�$(�=�=�2�R�7�$� �$�H�-��2� 0�� :� E� E� G����+�+�4�t�;�4�t�;�6��<�@�4�G�-��&� �/�/� L� $�!%���"�(,�
�
�7�"�<�)�%�)��2�a�7�%6�x�%@�%K�%K�%M�'�E� �/�/� L� %�!&�'�'���'�'�6:�B�?�BF��K�CG��L�48�"�=�04�b�9�)�� $�6�6�,0�"�5� 7�H���)�Q�.�'��1�7�7�9�!�"�=��#'��C� �/�/�;?�� E�1���
!%� 7� 7�1�B�6�!8�I� ��*�a�/� )�(� 3� 9� 9� ;�A�B� ?��$)��D� �/�/�:>�� E�:>�� E�>B�B�� M�$(�"�d�!4�%)�"�d�!4�%)�"�d�!4�%)�"�d�!4�%)�"�d�!4�8<�b�$� G�>B�B�� M�1���{N
�)��AB��< s�\0�=\5N)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesrs��rrr	r	s��)�J��K�"�H�\r{r	c��eZdZdZy)�RedHatOpenVSwitch)r
zopenvswitch[2-9].*zopenvswitch-dpdkznuage-openvswitch6windgate-fpN�rtrurv�packagesrzr{rrr}r}ws	�� �Hr{r}c��eZdZdZy)�DebianOpenVSwitch)zopenvswitch-switchrNr~rzr{rrr�r�~s��:�Hr{r�)�sos.report.pluginsrrrr�osrr@r	r}r�rzr{rr�<module>r�sA��P�O��	�b�&�b�J ��\� �;��\�<�;r{

Zerion Mini Shell 1.0