# Path: poni/cloud_libvirt.py
# MISSING_LIBS = []
#     DNS = None
#         DNS = None
#     XMLE = None
# _IP_ADDR_SPLIT_RE = re.compile("^[0-9]+: ", flags=re.MULTILINE)
#     class TunnelingSSHClient(paramiko.SSHClient):
# class LVPError(CloudError):
# class LibvirtProvider(Provider):
# class DomainInfo(dict):
# class PoniLVConn(object):
# class PoniLVVol(object):
# class PoniLVPool(object):
# class PoniLVDom(object):
#         def connect(self, hostname, port=22, username=None, key_filename=None, sock=None):  # pylint: disable=W0221
# def _lv_pydns_lookup(name):
# def _lv_dns_lookup(name):
# def _created_str():
#     def __init__(self, msg, code=None):
#     def get_error_code(self):
# def convert_libvirt_errors(method):
#     def wrapper(self, *args, **kw):
# def ignore_libvirt_errors(*errs):
#     def decorate(method):
#     def __init__(self, cloud_prop):
#     def get_provider_key(cls, cloud_prop):
#     def conns(self):
#             def lv_connect(host, priority, weight):
#     def disconnect(self):
#     def _get_all_vms(self):
#         def add_vms(conn):
#     def _get_vms(self, props):
#     def _vm_async_apply(self, props, op, *args):
#     def init_instance(self, prop):
#     def terminate_instances(self, props):
#     def weighted_random_choice(self, cands):
#     def wait_instances(self, props, wait_state="running"):
#         def clone_instance(instance):
#     def discover_instances(self, instances):
#     def _get_instance_address_qemu_ga(self, instance, context):
#     def _get_instance_address_ipv6autoconf(self, instance, context):
#             def cleanup():
#     def power_on_instances(self, props):
#     def power_off_instances(self, props):
#     def create_snapshot(self, props, name=None, description=None, memory=False):
#     def remove_snapshot(self, props, name):
#     def revert_to_snapshot(self, props, name=None):
#     def find_instances(self, match_function):
#     def __getattr__(self, name):
#     def __init__(self, host=None, port=None, hypervisor=None, uri=None, keyfile=None, priority=None, weight=None):
#     def __repr__(self):
#     def weight(self):
#     def connect(self):
#     def refresh(self):
#     def refresh_node(self):
#     def refresh_list(self):
#     def _refresh_list(self):
#     def clone_vm(self, name, spec, overwrite=False):
#         def macaddr(index):
#     def libvirt_retry(self, op):
#     def __init__(self, vol, pool, conn):
#     def __read_desc(self):
#     def upload(self, data):
#     def __init__(self, pool, conn):
#     def __pool_info(self):
#     def _define_volume(self, target, megabytes, source, overwrite, voltype):
#     def create_volume(self, target, megabytes, overwrite=False, voltype=None, upload=None):
#     def clone_volume(self, source, target, megabytes=None, overwrite=False, voltype=None):
#     def delete_volume(self, name):
#     def __read_desc(self):
#     def __init__(self, conn, dom):
#     def ipv6_addr(self, prefix=None):
#     def delete(self):
#     def __dom_info(self):
#     def __read_desc(self):
#     def power_on(self):
#     def power_off(self):
#     def create_snapshot(self, name, description=None, memory=False):
#     def remove_snapshot(self, name):
#     def revert_to_snapshot(self, name):
# def parse_ip_addr(data):
# def mac_to_ipv6(prefix, mac):


from poni import cloud_libvirt
        "ip-addresses": [],
        }
    assert a[2] == {
        "name": "em1",
        "hardware-address": "3c:97:0e:9d:7c:f5",
        "ip-addresses": [],
        }
    assert a[3] == {
        "name": "wlp3s0",
        "hardware-address": "6c:88:14:65:80:80",
        "ip-addresses": [
            {"ip-address-type": "ipv4", "ip-address": "192.168.50.164", "prefix": 24},
            {"ip-address-type": "ipv6", "ip-address": "fe80::6e88:14ff:fe65:8080", "prefix": 64},
            ],
        }
    assert a[4] == {
        "name": "virbr0",
        "hardware-address": "52:54:00:fb:be:ef",
        "ip-addresses": [
            {"ip-address-type": "ipv4", "ip-address": "192.168.232.1", "prefix": 24},
            {"ip-address-type": "ipv6", "ip-address": "fe80::5054:ff:fefb:beef", "prefix": 64},
            ],
        }
    assert a[5] == {
        "name": "virbr0-nic",
        "hardware-address": "52:54:00:fb:be:ef",
        "ip-addresses": [],
        }

def test_mac_to_ipv6():

# Path: poni/cloud_libvirt.py
# MISSING_LIBS = []
#     DNS = None
#         DNS = None
#     XMLE = None
# _IP_ADDR_SPLIT_RE = re.compile("^[0-9]+: ", flags=re.MULTILINE)
#     class TunnelingSSHClient(paramiko.SSHClient):
# class LVPError(CloudError):
# class LibvirtProvider(Provider):
# class DomainInfo(dict):
# class PoniLVConn(object):
# class PoniLVVol(object):
# class PoniLVPool(object):
# class PoniLVDom(object):
#         def connect(self, hostname, port=22, username=None, key_filename=None, sock=None):  # pylint: disable=W0221
# def _lv_pydns_lookup(name):
# def _lv_dns_lookup(name):
# def _created_str():
#     def __init__(self, msg, code=None):
#     def get_error_code(self):
# def convert_libvirt_errors(method):
#     def wrapper(self, *args, **kw):
# def ignore_libvirt_errors(*errs):
#     def decorate(method):
#     def __init__(self, cloud_prop):
#     def get_provider_key(cls, cloud_prop):
#     def conns(self):
#             def lv_connect(host, priority, weight):
#     def disconnect(self):
#     def _get_all_vms(self):
#         def add_vms(conn):
#     def _get_vms(self, props):
#     def _vm_async_apply(self, props, op, *args):
#     def init_instance(self, prop):
#     def terminate_instances(self, props):
#     def weighted_random_choice(self, cands):
#     def wait_instances(self, props, wait_state="running"):
#         def clone_instance(instance):
#     def discover_instances(self, instances):
#     def _get_instance_address_qemu_ga(self, instance, context):
#     def _get_instance_address_ipv6autoconf(self, instance, context):
#             def cleanup():
#     def power_on_instances(self, props):
#     def power_off_instances(self, props):
#     def create_snapshot(self, props, name=None, description=None, memory=False):
#     def remove_snapshot(self, props, name):
#     def revert_to_snapshot(self, props, name=None):
#     def find_instances(self, match_function):
#     def __getattr__(self, name):
#     def __init__(self, host=None, port=None, hypervisor=None, uri=None, keyfile=None, priority=None, weight=None):
#     def __repr__(self):
#     def weight(self):
#     def connect(self):
#     def refresh(self):
#     def refresh_node(self):
#     def refresh_list(self):
#     def _refresh_list(self):
#     def clone_vm(self, name, spec, overwrite=False):
#         def macaddr(index):
#     def libvirt_retry(self, op):
#     def __init__(self, vol, pool, conn):
#     def __read_desc(self):
#     def upload(self, data):
#     def __init__(self, pool, conn):
#     def __pool_info(self):
#     def _define_volume(self, target, megabytes, source, overwrite, voltype):
#     def create_volume(self, target, megabytes, overwrite=False, voltype=None, upload=None):
#     def clone_volume(self, source, target, megabytes=None, overwrite=False, voltype=None):
#     def delete_volume(self, name):
#     def __read_desc(self):
#     def __init__(self, conn, dom):
#     def ipv6_addr(self, prefix=None):
#     def delete(self):
#     def __dom_info(self):
#     def __read_desc(self):
#     def power_on(self):
#     def power_off(self):
#     def create_snapshot(self, name, description=None, memory=False):
#     def remove_snapshot(self, name):
#     def revert_to_snapshot(self, name):
# def parse_ip_addr(data):
# def mac_to_ipv6(prefix, mac):


# Path: tests/test_cloud_libvirt.py
from poni import cloud_libvirt

        "ip-addresses": [],
        }
    assert a[2] == {
        "name": "em1",
        "hardware-address": "3c:97:0e:9d:7c:f5",
        "ip-addresses": [],
        }
    assert a[3] == {
        "name": "wlp3s0",
        "hardware-address": "6c:88:14:65:80:80",
        "ip-addresses": [
            {"ip-address-type": "ipv4", "ip-address": "192.168.50.164", "prefix": 24},
            {"ip-address-type": "ipv6", "ip-address": "fe80::6e88:14ff:fe65:8080", "prefix": 64},
            ],
        }
    assert a[4] == {
        "name": "virbr0",
        "hardware-address": "52:54:00:fb:be:ef",
        "ip-addresses": [
            {"ip-address-type": "ipv4", "ip-address": "192.168.232.1", "prefix": 24},
            {"ip-address-type": "ipv6", "ip-address": "fe80::5054:ff:fefb:beef", "prefix": 64},
            ],
        }
    assert a[5] == {
        "name": "virbr0-nic",
        "hardware-address": "52:54:00:fb:be:ef",
        "ip-addresses": [],
        }

def test_mac_to_ipv6():

    a = cloud_libvirt.mac_to_ipv6("fe80::", "52:54:00:fb:be:ef")