HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/akamai.cpython-310.pyc
o

x[h��@s�ddlZddlmZmZmZmZddlmZdddddd	d
�Zdee	ee
e	fffdd
�Zde
fdd�Zdee	fdd�Z
dS)�N)�Any�Dict�Optional�Union)�dmi�allow_local_stage�allow_init_stage�
allow_dhcp�
allow_ipv4�
allow_ipv6�preferred_mac_prefixes)�als�ais�dhcp�v4�v6�pmp�returncCsnt�d�}i}|s|St�d|�D]#\}}}|tvr4|dvr%tt|��}n	|dkr.|�d�}||t|<q|S)zH
    Parses flags from dmi data and updates self.ds_cfg accordingly
    zbaseboard-serial-numberz([a-z0-9]+)=(.*?)(;|$)�01r�,)r�
read_dmi_data�re�findall�DMI_OVERRIDE_MAP�bool�int�split)�	dmi_flags�ret�key�value�_�r"�B/usr/lib/python3/dist-packages/cloudinit/sources/helpers/akamai.py�get_dmi_configs

�r$cCst�d�}|dvS)zo
    Reads the BIOS vendor from dmi data to determine if we are running in the
    Akamai Connected Cloud.
    zsystem-manufacturer)�Linode�Akamai�rr)�vendorr"r"r#�is_on_akamai(s
r)cCs
t�d�S)zo
    Returns the instance id read from dmi data without requiring the metadata
    service to be reachable
    zsystem-serial-numberr'r"r"r"r#�get_local_instance_id1s
r*)r�typingrrrr�	cloudinitrr�strrr$r)r*r"r"r"r#�<module>s�