Files
neutron-lib/neutron_lib/tests/unit/api/definitions/test_dvr.py
Boden R 7302628229 rehome dvr extension api def
This patch rehomes the neutron dvr extension API definition into
neutron-lib. In addition the MacAddressGenerationFailure is defined
twice in neutron; once for net failures and once for host failures.
As both exceptions are used today [1], this patch proposes we name
them slightly different to reflect their usage, but keep them in
the generic exceptions module as it's foreseeable that MAC address
failures can happen outside the context of the dvr extension.

UTs and release note are also included.

[1] http://codesearch.openstack.org/?q=MacAddressGenerationFailure

Change-Id: I6d98e83287833882515240d7db1faa4a1deb7da1
2017-09-12 22:34:32 +00:00

21 lines
835 B
Python

# 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.api.definitions import dvr
from neutron_lib.tests.unit.api.definitions import base
class DvrDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = dvr
extension_resources = ()
extension_attributes = (dvr.DISTRIBUTED,)