Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 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 : |
� �fE � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZmZm Z ddd�Z ej e� Z dd�Zd � Zdd �Zd� Zdd�Zd � Zy)� N)�dmi)�net)�subp� url_helper�util�eth0�eth1)�public�privatec �> � |s!t | � }t j d|� |st d� �dj t j dd� t j dd� � }dd d |d|g}ddd d|dg}t j d� st d� � t j |� t j d||� t j |� t j d|� |S # t $ r t j t d||� � w xY w)z�Bring up NIC using an address using link-local (ip4LL) IPs. On DigitalOcean, the link-local domain is per-droplet routed, so there is no risk of collisions. However, to be more safe, the ip4LL address is random. z,selected interface '%s' for reading metadatazPunable to find interfaces to access themeta-data server. This droplet is broken.z169.254.{0}.{1}/16� � r � �ip�addr�add�dev�link�set�upz4No 'ip' command available to configure ip4LL addressz#assigned ip4LL address '%s' to '%s'zbrought device '%s' upzRip4LL address assignment of '%s' to '%s' failed. Droplet networking will be broken)�get_link_local_nic�LOG�debug�RuntimeError�format�random�randintr �which� Exceptionr �logexc)�distro�nicr �ip_addr_cmd�ip_link_cmds �H/usr/lib/python3/dist-packages/cloudinit/sources/helpers/digitalocean.py�assign_ipv4_link_localr&