Merge "Refactor VIFPortIDMixin: rename"

This commit is contained in:
Jenkins 2017-07-24 20:30:03 +00:00 committed by Gerrit Code Review
commit a6f8566f4c
6 changed files with 9 additions and 9 deletions

View File

@ -296,7 +296,7 @@ def plug_port_to_tenant_network(task, port_like_obj, client=None):
raise exception.NetworkError(msg)
class VIFPortIDMixin(object):
class NeutronVIFPortIDMixin(object):
def port_changed(self, task, port_obj):
"""Handle any actions required when a port changes

View File

@ -30,8 +30,8 @@ LOG = log.getLogger(__name__)
CONF = cfg.CONF
class FlatNetwork(common.VIFPortIDMixin, neutron.NeutronNetworkInterfaceMixin,
base.NetworkInterface):
class FlatNetwork(common.NeutronVIFPortIDMixin,
neutron.NeutronNetworkInterfaceMixin, base.NetworkInterface):
"""Flat network interface."""
def __init__(self):

View File

@ -28,7 +28,7 @@ LOG = log.getLogger(__name__)
CONF = cfg.CONF
class NeutronNetwork(common.VIFPortIDMixin,
class NeutronNetwork(common.NeutronVIFPortIDMixin,
neutron.NeutronNetworkInterfaceMixin,
base.NetworkInterface):
"""Neutron v2 network interface"""

View File

@ -436,13 +436,13 @@ class TestCommonFunctions(db_base.DbTestCase):
task, self.port)
class TestVifPortIDMixin(db_base.DbTestCase):
class TestNeutronVifPortIDMixin(db_base.DbTestCase):
def setUp(self):
super(TestVifPortIDMixin, self).setUp()
super(TestNeutronVifPortIDMixin, self).setUp()
self.config(enabled_drivers=['fake'])
mgr_utils.mock_the_extension_manager()
self.interface = common.VIFPortIDMixin()
self.interface = common.NeutronVIFPortIDMixin()
self.node = obj_utils.create_test_node(self.context,
network_interface='neutron')
self.port = obj_utils.create_test_port(

View File

@ -24,7 +24,7 @@ from ironic.tests.unit.db import base as db_base
from ironic.tests.unit.objects import utils
CONF = cfg.CONF
VIFMIXINPATH = 'ironic.drivers.modules.network.common.VIFPortIDMixin'
VIFMIXINPATH = 'ironic.drivers.modules.network.common.NeutronVIFPortIDMixin'
class TestFlatInterface(db_base.DbTestCase):

View File

@ -28,7 +28,7 @@ from ironic.tests.unit.objects import utils
CONF = cfg.CONF
CLIENT_ID1 = '20:00:55:04:01:fe:80:00:00:00:00:00:00:00:02:c9:02:00:23:13:92'
CLIENT_ID2 = '20:00:55:04:01:fe:80:00:00:00:00:00:00:00:02:c9:02:00:23:13:93'
VIFMIXINPATH = 'ironic.drivers.modules.network.common.VIFPortIDMixin'
VIFMIXINPATH = 'ironic.drivers.modules.network.common.NeutronVIFPortIDMixin'
class NeutronInterfaceTestCase(db_base.DbTestCase):