# Path: bgpvpn_dashboard/api/bgpvpn.py
# LOG = logging.getLogger(__name__)
# class Bgpvpn(neutron.NeutronAPIDictWrapper):
# class NetworkAssociation(neutron.NeutronAPIDictWrapper):
# class RouterAssociation(neutron.NeutronAPIDictWrapper):
# def bgpvpns_list(request, **kwargs):
# def bgpvpn_get(request, bgpvpn_id, **kwargs):
# def bgpvpn_create(request, **kwargs):
# def bgpvpn_update(request, bgpvpn_id, **kwargs):
# def bgpvpn_delete(request, bgpvpn_id):
# def network_association_get(request, bgpvpn_id, network_assoc_id, **kwargs):
# def network_association_list(request, bgpvpn_id, **kwargs):
# def network_association_create(request, bgpvpn_id, **kwargs):
# def network_association_delete(request, resource_id, bgpvpn_id):
# def router_association_get(request, bgpvpn_id, router_assoc_id, **kwargs):
# def router_association_list(request, bgpvpn_id, **kwargs):
# def router_association_create(request, bgpvpn_id, **kwargs):
# def router_association_update(request, bgpvpn_id, router_association_id,
#                               **kwargs):
# def router_association_delete(request, resource_id, bgpvpn_id):


import copy
from bgpvpn_dashboard.api import bgpvpn
from openstack_dashboard.test.test_data import utils
def data(TEST):
    TEST.bgpvpns = utils.TestDataContainer()
    TEST.api_bgpvpns = utils.TestDataContainer()
    TEST.network_associations = utils.TestDataContainer()
    TEST.api_network_associations = utils.TestDataContainer()
    TEST.router_associations = utils.TestDataContainer()
    TEST.api_router_associations = utils.TestDataContainer()

    bgpvpn_dict = {'id': 'b595e758-1877-4aec-92a2-6834d76f1025',
                   'tenant_id': '1',
                   'name': 'bgpvpn1',
                   'route_targets': '64500:1'
                   }
    TEST.api_bgpvpns.add(bgpvpn_dict)
    b = bgpvpn.Bgpvpn(copy.deepcopy(bgpvpn_dict))
    TEST.bgpvpns.add(b)

    network_association_dict = {
        'id': '99ef096d-21fb-43a7-9e2a-b3c464abef3a',
        'network_id': '063cf7f3-ded1-4297-bc4c-31eae876cc91',
        'tenant_id': '1'}
    TEST.api_network_associations.add(network_association_dict)
    na = bgpvpn.NetworkAssociation(copy.deepcopy(network_association_dict))
    TEST.network_associations.add(na)

    router_association_dict = {
        'id': '9736c228-745d-4e78-83a5-d971d9fd8f2c',
        'router_id': '279989f7-54bb-41d9-ba42-0d61f12fda61',
        'tenant_id': '1'}
    TEST.api_router_associations.add(router_association_dict)

# Path: bgpvpn_dashboard/api/bgpvpn.py
# LOG = logging.getLogger(__name__)
# class Bgpvpn(neutron.NeutronAPIDictWrapper):
# class NetworkAssociation(neutron.NeutronAPIDictWrapper):
# class RouterAssociation(neutron.NeutronAPIDictWrapper):
# def bgpvpns_list(request, **kwargs):
# def bgpvpn_get(request, bgpvpn_id, **kwargs):
# def bgpvpn_create(request, **kwargs):
# def bgpvpn_update(request, bgpvpn_id, **kwargs):
# def bgpvpn_delete(request, bgpvpn_id):
# def network_association_get(request, bgpvpn_id, network_assoc_id, **kwargs):
# def network_association_list(request, bgpvpn_id, **kwargs):
# def network_association_create(request, bgpvpn_id, **kwargs):
# def network_association_delete(request, resource_id, bgpvpn_id):
# def router_association_get(request, bgpvpn_id, router_assoc_id, **kwargs):
# def router_association_list(request, bgpvpn_id, **kwargs):
# def router_association_create(request, bgpvpn_id, **kwargs):
# def router_association_update(request, bgpvpn_id, router_association_id,
#                               **kwargs):
# def router_association_delete(request, resource_id, bgpvpn_id):


# Path: bgpvpn_dashboard/test/test_data/bgpvpn_data.py
import copy
from bgpvpn_dashboard.api import bgpvpn
from openstack_dashboard.test.test_data import utils

def data(TEST):
    TEST.bgpvpns = utils.TestDataContainer()
    TEST.api_bgpvpns = utils.TestDataContainer()
    TEST.network_associations = utils.TestDataContainer()
    TEST.api_network_associations = utils.TestDataContainer()
    TEST.router_associations = utils.TestDataContainer()
    TEST.api_router_associations = utils.TestDataContainer()

    bgpvpn_dict = {'id': 'b595e758-1877-4aec-92a2-6834d76f1025',
                   'tenant_id': '1',
                   'name': 'bgpvpn1',
                   'route_targets': '64500:1'
                   }
    TEST.api_bgpvpns.add(bgpvpn_dict)
    b = bgpvpn.Bgpvpn(copy.deepcopy(bgpvpn_dict))
    TEST.bgpvpns.add(b)

    network_association_dict = {
        'id': '99ef096d-21fb-43a7-9e2a-b3c464abef3a',
        'network_id': '063cf7f3-ded1-4297-bc4c-31eae876cc91',
        'tenant_id': '1'}
    TEST.api_network_associations.add(network_association_dict)
    na = bgpvpn.NetworkAssociation(copy.deepcopy(network_association_dict))
    TEST.network_associations.add(na)

    router_association_dict = {
        'id': '9736c228-745d-4e78-83a5-d971d9fd8f2c',
        'router_id': '279989f7-54bb-41d9-ba42-0d61f12fda61',
        'tenant_id': '1'}
    TEST.api_router_associations.add(router_association_dict)

    ra = bgpvpn.RouterAssociation(copy.deepcopy(router_association_dict))