aca9eab6f7
Change-Id: I2db28dc025f256b5b818ddbfd88a818388d09af0
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
# Copyright 2019 Red Hat, Inc.
|
|
# 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.
|
|
|
|
from neutron_lib import exceptions as n_exc
|
|
from octavia_lib.api.drivers import exceptions as driver_exceptions
|
|
|
|
from ovn_octavia_provider.i18n import _
|
|
|
|
|
|
class RevisionConflict(n_exc.NeutronException):
|
|
message = _('OVN revision number for %(resource_id)s (type: '
|
|
'%(resource_type)s) is equal or higher than the given '
|
|
'resource. Skipping update')
|
|
|
|
|
|
class IPVersionsMixingNotSupportedError(
|
|
driver_exceptions.UnsupportedOptionError):
|
|
user_fault_string = _('OVN provider does not support mixing IPv4/IPv6 '
|
|
'configuration within the same Load Balancer.')
|
|
operator_fault_string = user_fault_string
|