# Path: networking_bgpvpn/neutron/extensions/bgpvpn.py
# LOG = log.getLogger(__name__)
# class BGPVPNNotFound(n_exc.NotFound):
# class BGPVPNNetAssocNotFound(n_exc.NotFound):
# class BGPVPNRouterAssocNotFound(n_exc.NotFound):
# class BGPVPNTypeNotSupported(n_exc.BadRequest):
# class BGPVPNRDNotSupported(n_exc.BadRequest):
# class BGPVPNFindFromNetNotSupported(n_exc.BadRequest):
# class BGPVPNNetAssocAlreadyExists(n_exc.BadRequest):
# class BGPVPNRouterAssociationNotSupported(n_exc.BadRequest):
# class BGPVPNRouterAssocAlreadyExists(n_exc.BadRequest):
# class BGPVPNMultipleRouterAssocNotSupported(n_exc.BadRequest):
# class BGPVPNNetworkAssocExistsAnotherBgpvpn(n_exc.BadRequest):
# class BGPVPNDriverError(n_exc.NeutronException):
# class Bgpvpn(api_extensions.APIExtensionDescriptor):
# class BGPVPNPluginBase(libbase.ServicePluginBase, metaclass=abc.ABCMeta):
#     def get_resources(cls):
#     def get_plugin_interface(cls):
#     def get_plugin_type(self):
#     def get_plugin_description(self):
#     def create_bgpvpn(self, context, bgpvpn):
#     def get_bgpvpns(self, context, filters=None, fields=None):
#     def get_bgpvpn(self, context, id, fields=None):
#     def update_bgpvpn(self, context, id, bgpvpn):
#     def delete_bgpvpn(self, context, id):
#     def create_bgpvpn_network_association(self, context, bgpvpn_id,
#                                           network_association):
#     def get_bgpvpn_network_association(self, context, assoc_id, bgpvpn_id,
#                                        fields=None):
#     def get_bgpvpn_network_associations(self, context, bgpvpn_id,
#                                         filters=None, fields=None):
#     def update_bgpvpn_network_association(self, context, assoc_id, bgpvpn_id,
#                                           network_association):
#     def delete_bgpvpn_network_association(self, context, assoc_id, bgpvpn_id):
#     def create_bgpvpn_router_association(self, context, bgpvpn_id,
#                                          router_association):
#     def get_bgpvpn_router_association(self, context, assoc_id, bgpvpn_id,
#                                       fields=None):
#     def get_bgpvpn_router_associations(self, context, bgpvpn_id, filters=None,
#                                        fields=None):
#     def delete_bgpvpn_router_association(self, context, assoc_id, bgpvpn_id):


import copy
from unittest import mock
from oslo_utils import uuidutils
from neutron.tests.unit.api.v2 import test_base
from neutron.tests.unit.extensions import base as test_extensions_base
from neutron_lib.api.definitions import bgpvpn as bgpvpn_def
from neutron_lib.api.definitions import bgpvpn_vni as bgpvpn_vni_def
from webob import exc
from networking_bgpvpn.neutron.extensions import bgpvpn
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#





_uuid = uuidutils.generate_uuid
_get_path = test_base._get_path
BGPVPN_PREFIX = 'bgpvpn'
BGPVPN_URI = BGPVPN_PREFIX + '/' + 'bgpvpns'
BGPVPN_PLUGIN_BASE_NAME = (bgpvpn.BGPVPNPluginBase.__module__ +
                           '.' +
                           bgpvpn.BGPVPNPluginBase.__name__)


class BgpvpnVniTestExtensionManager(object):

    def get_resources(self):
        bgpvpn_def.RESOURCE_ATTRIBUTE_MAP[bgpvpn_def.COLLECTION_NAME].update(
            bgpvpn_vni_def.RESOURCE_ATTRIBUTE_MAP[bgpvpn_def.COLLECTION_NAME])

# Path: networking_bgpvpn/neutron/extensions/bgpvpn.py
# LOG = log.getLogger(__name__)
# class BGPVPNNotFound(n_exc.NotFound):
# class BGPVPNNetAssocNotFound(n_exc.NotFound):
# class BGPVPNRouterAssocNotFound(n_exc.NotFound):
# class BGPVPNTypeNotSupported(n_exc.BadRequest):
# class BGPVPNRDNotSupported(n_exc.BadRequest):
# class BGPVPNFindFromNetNotSupported(n_exc.BadRequest):
# class BGPVPNNetAssocAlreadyExists(n_exc.BadRequest):
# class BGPVPNRouterAssociationNotSupported(n_exc.BadRequest):
# class BGPVPNRouterAssocAlreadyExists(n_exc.BadRequest):
# class BGPVPNMultipleRouterAssocNotSupported(n_exc.BadRequest):
# class BGPVPNNetworkAssocExistsAnotherBgpvpn(n_exc.BadRequest):
# class BGPVPNDriverError(n_exc.NeutronException):
# class Bgpvpn(api_extensions.APIExtensionDescriptor):
# class BGPVPNPluginBase(libbase.ServicePluginBase, metaclass=abc.ABCMeta):
#     def get_resources(cls):
#     def get_plugin_interface(cls):
#     def get_plugin_type(self):
#     def get_plugin_description(self):
#     def create_bgpvpn(self, context, bgpvpn):
#     def get_bgpvpns(self, context, filters=None, fields=None):
#     def get_bgpvpn(self, context, id, fields=None):
#     def update_bgpvpn(self, context, id, bgpvpn):
#     def delete_bgpvpn(self, context, id):
#     def create_bgpvpn_network_association(self, context, bgpvpn_id,
#                                           network_association):
#     def get_bgpvpn_network_association(self, context, assoc_id, bgpvpn_id,
#                                        fields=None):
#     def get_bgpvpn_network_associations(self, context, bgpvpn_id,
#                                         filters=None, fields=None):
#     def update_bgpvpn_network_association(self, context, assoc_id, bgpvpn_id,
#                                           network_association):
#     def delete_bgpvpn_network_association(self, context, assoc_id, bgpvpn_id):
#     def create_bgpvpn_router_association(self, context, bgpvpn_id,
#                                          router_association):
#     def get_bgpvpn_router_association(self, context, assoc_id, bgpvpn_id,
#                                       fields=None):
#     def get_bgpvpn_router_associations(self, context, bgpvpn_id, filters=None,
#                                        fields=None):
#     def delete_bgpvpn_router_association(self, context, assoc_id, bgpvpn_id):


# Path: networking_bgpvpn/tests/unit/extensions/test_bgpvpn_vni.py
import copy
from unittest import mock
from oslo_utils import uuidutils
from neutron.tests.unit.api.v2 import test_base
from neutron.tests.unit.extensions import base as test_extensions_base
from neutron_lib.api.definitions import bgpvpn as bgpvpn_def
from neutron_lib.api.definitions import bgpvpn_vni as bgpvpn_vni_def
from webob import exc
from networking_bgpvpn.neutron.extensions import bgpvpn

# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#





_uuid = uuidutils.generate_uuid
_get_path = test_base._get_path
BGPVPN_PREFIX = 'bgpvpn'
BGPVPN_URI = BGPVPN_PREFIX + '/' + 'bgpvpns'
BGPVPN_PLUGIN_BASE_NAME = (bgpvpn.BGPVPNPluginBase.__module__ +
                           '.' +
                           bgpvpn.BGPVPNPluginBase.__name__)


class BgpvpnVniTestExtensionManager(object):

    def get_resources(self):
        bgpvpn_def.RESOURCE_ATTRIBUTE_MAP[bgpvpn_def.COLLECTION_NAME].update(
            bgpvpn_vni_def.RESOURCE_ATTRIBUTE_MAP[bgpvpn_def.COLLECTION_NAME])

        return bgpvpn.Bgpvpn.get_resources()