HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/cloudinit/sources/helpers/__pycache__/akamai.cpython-36.pyc
3

\�me��@s�ddlZddlmZmZmZmZddlmZdddddd	d
�Zee	ee
e	ffd�dd
�Ze
d�dd�Zee	d�dd�Z
dS)�N)�Any�Dict�Optional�Union)�dmiZallow_local_stageZallow_init_stageZ
allow_dhcpZ
allow_ipv4Z
allow_ipv6Zpreferred_mac_prefixes)ZalsZaisZdhcpZv4Zv6�pmp)�returncCsrtjd�}i}|s|SxVtjd|�D]F\}}}|tkr$|dkrLtt|��}n|dkr^|jd�}||t|<q$W|S)zH
    Parses flags from dmi data and updates self.ds_cfg accordingly
    zbaseboard-serial-numberz([a-z0-9]+)=(.*?)(;|$)Z01r�,)r�
read_dmi_data�re�findall�DMI_OVERRIDE_MAP�bool�int�split)Z	dmi_flags�ret�key�value�_�r�/usr/lib/python3.6/akamai.py�get_dmi_configs

rcCstjd�}|dkS)zo
    Reads the BIOS vendor from dmi data to determine if we are running in the
    Akamai Connected Cloud.
    zsystem-manufacturer�Linode�Akamai)rr)rr
)Zvendorrrr�is_on_akamai(s
rcCs
tjd�S)zo
    Returns the instance id read from dmi data without requiring the metadata
    service to be reachable
    zsystem-serial-number)rr
rrrr�get_local_instance_id1sr)rZtypingrrrrZ	cloudinitrr
�strrrrrrrrr�<module>s