name : akamai.cpython-39.opt-1.pyc
a

'�Dg��@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\}}}|tvr"|dvrJtt|��}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_flags�ret�key�value�_�r�D/usr/lib/python3.9/site-packages/cloudinit/sources/helpers/akamai.py�get_dmi_configs

rcCst�d�}|dvS)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�
	

© 2025 Cubjrnet7