File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/networking.cpython-312.pyc
�
([Qhp9 � � � d dl mZmZmZmZmZmZ d dlmZ d dl m
Z
G d� de� Z G d� dee� Z G d� d eee� Z
y
)� )�Plugin�RedHatPlugin�UbuntuPlugin�DebianPlugin�SoSPredicate� PluginOpt)�UbuntuPolicy)�DebianPolicyc �� � � e Zd ZdZdZdZdZ eddde� ��� ed d
ed�� ed
de d�� eddd�� eddd�� gZ
dZg d�ZdZ
� fd�Zd� Zd� Zd� Z� xZS )�
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 �Z �� t �
| � � | j ddd�� | j g d�� | j g d�� | j ddd�� | j d d
d
dg�� | j d� | j d
| j � d�d�� | j dddd
| j � d�dddddddddddd d!d"d#d$d%d&g� | j d'� r�| j g d(�� | j d)� }|d* d+k( r�|d, j � }|D ]� }| j d-|� �d.|� �d/|� �d0|� �g� g }| j d1|� �� }|d* d+k( s�C|d, j � D ]6 }|j d2� s�|j |j � d3 � �8 | j |D �cg c]
}d1|� d4|� ��� c}� �� d5}t | d6g�7� } | j || d8�9� | j � | j � y c c}w ):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/var/lib/lldpad/)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'