# Path: networking_bgpvpn/_i18n.py
# DOMAIN = "networking_bgpvpn"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# _LI = _translators.log_info
# _LW = _translators.log_warning
# _LE = _translators.log_error
# _LC = _translators.log_critical
# def get_available_languages():


import abc
from neutron.api import extensions
from neutron.api.v2 import base
from neutron_lib.api.definitions import bgpvpn as bgpvpn_api
from neutron_lib.api.definitions import bgpvpn_routes_control as api_def
from neutron_lib.api import extensions as api_extensions
from neutron_lib import exceptions as n_exc
from neutron_lib.plugins import directory
from neutron_lib.services import base as libbase
from oslo_log import log
from networking_bgpvpn._i18n import _
# Copyright (c) 2015 Orange.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    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.







LOG = log.getLogger(__name__)


class BGPVPNPortAssocNotFound(n_exc.NotFound):
    message = _("BGPVPN port association %(id)s could not be found "
                "for BGPVPN %(bgpvpn_id)s")


class BGPVPNPortAssocAlreadyExists(n_exc.BadRequest):

# Path: networking_bgpvpn/_i18n.py
# DOMAIN = "networking_bgpvpn"
# _C = _translators.contextual_form
# _P = _translators.plural_form
# _LI = _translators.log_info
# _LW = _translators.log_warning
# _LE = _translators.log_error
# _LC = _translators.log_critical
# def get_available_languages():


# Path: networking_bgpvpn/neutron/extensions/bgpvpn_routes_control.py
import abc
from neutron.api import extensions
from neutron.api.v2 import base
from neutron_lib.api.definitions import bgpvpn as bgpvpn_api
from neutron_lib.api.definitions import bgpvpn_routes_control as api_def
from neutron_lib.api import extensions as api_extensions
from neutron_lib import exceptions as n_exc
from neutron_lib.plugins import directory
from neutron_lib.services import base as libbase
from oslo_log import log
from networking_bgpvpn._i18n import _

# Copyright (c) 2015 Orange.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    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.







LOG = log.getLogger(__name__)


class BGPVPNPortAssocNotFound(n_exc.NotFound):
    message = _("BGPVPN port association %(id)s could not be found "
                "for BGPVPN %(bgpvpn_id)s")


class BGPVPNPortAssocAlreadyExists(n_exc.BadRequest):

    message = _("port %(port_id)s is already associated to "