HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/akamai.cpython-38.pyc
U

Ӈg��@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)�returncCsnt�d�}i}|s|St�d|�D]F\}}}|tkr"|dkrJtt|��}n|dkr\|�d�}||t|<q"|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_flagsZret�key�value�_�r�B/usr/lib/python3/dist-packages/cloudinit/sources/helpers/akamai.py�get_dmi_configs

rcCst�d�}|dkS)zo
    Reads the BIOS vendor from dmi data to determine if we are running in the
    Akamai Connected Cloud.
    zsystem-manufacturer)ZLinodeZAkamai�rr
)Zvendorrrr�is_on_akamai(s
rcCs
t�d�S)zo
    Returns the instance id read from dmi data without requiring the metadata
    service to be reachable
    zsystem-serial-numberrrrrr�get_local_instance_id1sr)r�typingrrrrZ	cloudinitrr
�strrrrrrrrr�<module>s�