File manager - Edit - /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/networking.cpython-310.pyc
Back
o -�_g�6 � @ sZ d dl mZmZmZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�Z dS ) � )�Plugin�RedHatPlugin�UbuntuPlugin�DebianPlugin�SoSPredicate� PluginOptc s� e Zd ZdZdZdZdZeddde� �d�ed d edd�ed de dd�edddd�edddd�gZ dZg d�ZdZ � fdd�Zdd� Zdd� Zdd� Z� ZS ) � Networkingz,Network and networking devices configuration� networking)�network�hardware�systemzwww.example.com� tracerouteFzcollect a traceroute to )�default�desc�namespace-pattern� zFSpecific namespace names or patterns to collect, whitespace delimited.)r �val_typer � namespacesNz0Number of namespaces to collect, 0 for unlimited�ethtool-namespacesTz;Toggle if ethtool commands should be run for each namespace� eepromdumpz*Toggle collection of 'ethtool -e' for NICsz-W)�tcp_diag�udp_diag� inet_diag� unix_diag�netlink_diag�af_packet_diag�xsk_diag�acdgiklmPSTc s� t � �� | �ddd�� | �g d�� | �g d�� | jdddd� | jd d d dgd� | �d� | jd | j� d�dd� | �ddd | j� d�ddddddddddddd d!d"d#d$d%g� | �d&�r�| �g d'�� | �d(�}|d) d*kr�|d+ � � }|D ]J� | �d,� � �d-� � �d.� � �d/� � �g� g }| �d0� � ��}|d) d*kr�|d+ � � D ]}|� d1�r�|�|�� d2 � q�| �� fd3d4�|D �� q|d5}t | d6gd7�}| j||d8d9� | �� | �� d S ):N�bond�hosts)z/proc/net/bonding/bond.*z /etc/hosts)z /etc/dnsmasq*z /etc/host*z/etc/inetd.confz /etc/iproute2z /etc/network*z/etc/nsswitch.conf�/etc/resolv.confz/etc/xinetd.confz /etc/xinetd.dz/etc/yp.confz /proc/net/z!/sys/class/net/*/device/numa_nodez/sys/class/net/*/flagsz/sys/class/net/*/statistics/z /etc/nmstate/)z/proc/net/rpc/use-gss-proxyz/proc/net/rpc/*/channelz/proc/net/rpc/*/flushz /proc/net/cdpz/sys/net/cdpz/proc/net/eiconz ip -o addr�ip_addr)�root_symlink�tagszip route show table all�ip_route�iproute_show_table_all� plotnetcfgznetstat � -neopa�netstat)r"