3 \�me� � @ s� U d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlmZm Z mZmZmZ d dlmZmZ eje�ZdOdPdQdRdSdTdUdVdWdXdYdZd[d� Zdddd�ZdZdZdZdegZdd ddddgZdZdZdZ ee eeg d d d!id"�Z!d d#d d d$�id d%d d&�gd'�Z"d(Z#d)Z$G d*d+� d+ej%�Z&G d,d-� d-e'�Z(G d.d/� d/e(�Z)G d0d1� d1�Z*G d2d3� d3e*�Z+G d4d5� d5e*�Z,G d6d7� d7e,�Z-deee dfd8d9�Z.d:d;� Z/d\d=d>�Z0d]d?d@�Z1d^dAdB�Z2e&ej3ffgZ4dCdD� Z5edEk�r�d dl6Z6e.� Z7e7dk�r e8dF� e6j9dG� e:e6j;�dGk�rPe<ej=� �e<ej=� � dHg Z=ne6j;dGd� Z=dIdJ� Z>i Z?e@?xe=D ]ZAe>e7eAe?dK� �qtW e8ejBe?dGdd_dN�� dS )`� N)� atomic_helper�dmi�sources�subp�util)� EventScope� EventType�sdc:uuidT�hostname�root_authorized_keys�user-scriptF� user-data�cloud-init:user-data�iptables_disable� motd_sys_info�sdc:datacenter_name�sdc:vendor-data�sdc:operator-script�sdc:hostname�sdc:dns_domain) zinstance-idzlocal-hostnamezpublic-keyszuser-scriptzlegacy-user-dataz user-datar r Zavailability_zonezvendor-datazoperator-scriptr � dns_domainzsdc:nicsz sdc:resolversz sdc:routes)znetwork-data�dns_servers�routeszlx-brandZkvmZSmartOSZ datasourcezsdc:uuiduser-dataz"/native/.zonecontrol/metadata.sockz /dev/ttyS1�<