�
\�`fY � �^ � d dl Z d dlmZmZ d dlmZ d dlmZ G d� dej � Zy)� N)�PREFERRED_NTP_CLIENTS�debian)�Snap)�CLOUDINIT_NETPLAN_FILEc �: � � e Zd Z� fd�Zd� fd� Zed� � Z� xZS )�Distroc �P �� t �| � |||� dt d�| _ | j d t j
d�| j d t j
dd�d�| _ t | j � | _ | j j | j � y )Nz+/etc/network/interfaces.d/50-cloud-init.cfg)�eni�netplanr
)�eni_path�
eni_headerr T)�netplan_path�netplan_header�postcmds)�super�__init__r �network_conf_fnr �NETWORK_FILE_HEADER�renderer_configsr �_runner�snap�package_managers�append)�self�name�cfg�paths� __class__s ��:/usr/lib/python3/dist-packages/cloudinit/distros/ubuntu.pyr zDistro.__init__ s� �� �
����s�E�*� A�-�
��� !�0�0��7�$�8�8��
!%� 4� 4�Y� ?�"(�"<�"<� ��
!
��� ����&�� ����$�$�T�Y�Y�/� c � �� t �| � |||� | j j � r| j j � y y )N)r �package_commandr � available�upgrade_packages)r �command�args�pkgsr s �r r" |