MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/common/libraries/persistentnetnames.pyc
�
��ic@s]ddlZddlmZddlmZmZej�Zd�Zd�Z	d�Z
dS(i����N(tapi(t	Interfacet
PCIAddresscCsAtjt�jd�}g|D]}|jjd�s|^qS(sU
    Returns a list of pyudev.Device objects for all physical network interfaces
    tnets/devices/virtual/(tpyudevt
Enumeratortudev_contexttmatch_subsystemtdevice_patht
startswith(t
enumeratortd((s^/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/persistentnetnames.pytphysical_interfaces	scCs�i}|jd�r�|dd!jd�}|d|d<|d|d<|d	jd
�d|d<|d	jd
�d|d<n|S(
so
    Returns PCI topology info from string which is expected to be a value of ID_PATH udev device property
    spci-iit:itdomainitbusit.tdevicetfunction(R	tsplit(tpathtpcit
components((s^/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/persistentnetnames.pytpci_infosccs�x�t�D]�}i}y�|j|d<|j|d<|d|d<|d|d<tt|d��|d<|jjd	�|d
<t|d
t�r�|d
j	�|d
<nWn3t
k
r�}tj�j
dt|��q
nXt|�Vq
WdS(
s|
    Generator which produces an Interface objects containing assorted interface properties relevant for network naming
    tnametdevpatht
ID_NET_DRIVERtdrivertID_VENDOR_IDtvendortID_PATHRtaddresstmacs6Failed to gather information about network interface: N(Rtsys_nameRRRt
attributestgett
isinstancetbytestdecodet	ExceptionRtcurrent_loggertwarningtstrR(tdevtattrste((s^/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/persistentnetnames.pyt
interfaces"s

(Rtleapp.libraries.stdlibRtleapp.modelsRRtContextRRRR.(((s^/usr/share/leapp-repository/repositories/system_upgrade/common/libraries/persistentnetnames.pyt<module>s