__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[h����SSKrSSKJr SSKJrJrJr SSKJr \R"\
5rSSjrS	Sjr
S
Sjrg)�N)�MutableMapping)�net�
url_helper�util)�ec2c
��^�[R"X5n[R"US5n[R"UUUUUUUS9n	[R"U	R
5n
U4SjmT"U
5$)Nz
meta-data/all��ssl_details�timeout�retries�exception_cb�
headers_cb�headers_redactc�0>�[U[5(a,UR5VVs0sHupUT"U5_M snn$[U[5(aUVs/sHnT"U5PM
 sn$[R
"5"SU5$s snnfs snf)N�)�
isinstance�dict�items�listr�MetadataLeafDecoder)�d�k�v�item�_process_dict_valuess    ��B/usr/lib/python3/dist-packages/cloudinit/sources/helpers/aliyun.pyr�4get_instance_meta_data.<locals>._process_dict_valuesUs����a����;<�7�7�9�E�9�4�1�A�+�A�.�.�9�E�E�
��4�
 �
 �;<�=�1�4�(��.�1�=�=��*�*�,�R��3�3��	F��=s�B
�B)r�combine_url�read_file_or_urlr�	load_json�contents)�api_version�metadata_addressr
rrrrr
�ud_url�response�
meta_data_rawrs           @r�get_instance_meta_datar'sv����
#�
#�$4�
B�F�
�
#�
#�F�O�
<�F��*�*�����!��%��H�!�N�N�8�+<�+<�=�M�h4� �
�.�.�c	
�L�[R"X5n	[R"X�5n	Sn
SS/nX�;a[RSU5 U
$[R"U	UUUUUUS9nUR
n
U
$![a  [R"[SX�5 U
$f=f)Nr(z	user-datazvendor-dataz*aliyun datasource not support the item  %sr	zFailed fetching %s from url %s)	rr�LOG�errorrr!�	Exceptionr�logexc)
r"r#r
rrrrr
�	item_namer$�data�support_items_listr%s
             r�get_instance_datar1`s����
#�
#�$4�
B�F�
�
#�
#�F�
6�F��D�%�}�5���*��	�	�8��	
���N��.�.��#���%�!�)�
��� � ���K���N����C�9�9�M��K�N�s�&A9�9&B#�"B#c��S0S.nU(d[R"5nUSSnU(dlUR5HupgXr:XdM O SSSWR50WS.nUR	U5n	U	R	S	5(aSUS
'X�SU'U$[5n
UR5H#upgUR	U5n	U	(dMXjU'M% [
U
R5[RS9n[U5Hbup�X�n
UR	U
5n	S
US-S-0nSUSSU
R50US.nU	R	S	5(a	SUS
'X�S'X�SU'Md [US5S:XayUSR5HbnUSURS5 USURSS5 USURSS5 USURSS5 Md U$)aeConvert ecs metadata to network config version 2 data dict.

@param: network_md: 'network' portion of ECS metadata.
generally formed as {"interfaces": {"macs": {}} where
'macs' is a dictionary with mac address as key:
@param: macs_to_nics: Optional dict of mac addresses and nic names. If
not provided, get_interfaces_by_mac is called to get it from the OS.
@param: fallback_nic: Optionally provide the primary nic interface name.
This nic will be guaranteed to minimally have a dhcp4 configuration.
@param: full_network_config: Boolean set True to configure all networking
presented by IMDS. This includes rendering secondary IPv4 and IPv6
addresses on all NICs and rendering network config on secondary NICs.
If False, only the primary nic will be configured and only with dhcp
(IPv4/IPv6).

@return A dict of network config version 2 based on the metadata and macs.
�)�version�	ethernets�
interfaces�macsTF�
macaddress)�dhcp4�dhcp6�match�set-name�ipv6sr:r5)�keyzroute-metric��d)r9�dhcp4-overridesr:r;r<zdhcp6-overridesrAN�routeszrouting-policy)r�get_interfaces_by_macr�lower�getr�sorted�keys�natural_sort_key�	enumerate�len�pop)�
network_md�macs_to_nics�fallback_nic�full_network_config�netcfg�
macs_metadata�mac�nic_name�
dev_config�nic_metadata�nic_name_2_mac_map�orderd_nic_name_list�nic_idx�nic_mac�
dhcp_overrides               r�#convert_ecs_metadata_network_configr[�s:��.*+��<�F���0�0�2���|�,�V�4�M��)�/�/�1�M�C��'��2���"�C�I�I�K�0� �	&
�
�%�(�(��-�����G�$�$�"&�J�w��(2�{��H�%��
����%�+�+�-�
��$�(�(��-����'*�8�$�	.�"����!�s�';�';���'�';�<���$�.��$�(�(��1��'�'�A�+��)<�=�
��,��"�G�M�M�O�4� �
�
����G�$�$�"&�J�w��,9�(�)�(2�{��H�%�=�$�6�+���1�$��{�+�0�0�2�H��;���)�-�-�.?�@��;���)�-�-�.?��F��;���)�-�-�h��=��;���)�-�-�.>��E�	3�
�Mr()�latest�http://100.100.100.200N�r^NNN)	r\r]Nr^r^NNNN)NNT)�logging�typingr�	cloudinitrrr�cloudinit.sources.helpersr�	getLogger�__name__r*r'r1r[�r(r�<module>rfs{���!�+�+�)�
����!���-��
�
����Q/�j�-��
�
�����"�N���	Nr(

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 165 B 0644
akamai.cpython-313.pyc File 1.93 KB 0644
aliyun.cpython-313.pyc File 5.91 KB 0644
azure.cpython-313.pyc File 46.53 KB 0644
cloudsigma.cpython-313.pyc File 4.71 KB 0644
digitalocean.cpython-313.pyc File 8.25 KB 0644
ec2.cpython-313.pyc File 9.33 KB 0644
hetzner.cpython-313.pyc File 1.14 KB 0644
netlink.cpython-313.pyc File 13.02 KB 0644
openstack.cpython-313.pyc File 28.2 KB 0644
upcloud.cpython-313.pyc File 6.95 KB 0644
vultr.cpython-313.pyc File 8.2 KB 0644
Filemanager