Skip to content

Commit

Permalink
libvirt: remove VIF driver classes deprecated in Icehouse
Browse files Browse the repository at this point in the history
In Icehouse the old VIF driver classes were set as deprecated
to be removed in Juno. Now they can be finally deleted.

Related-bug: #1302796
Change-Id: I7be735062e6cc6aa54dec1bf43d3cce1ac544988
  • Loading branch information
berrange committed Jul 24, 2014
1 parent 4c8af44 commit 894fbae
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions nova/virt/libvirt/vif.py
Expand Up @@ -24,7 +24,6 @@
from nova import exception
from nova.i18n import _
from nova.i18n import _LE
from nova.i18n import _LW
from nova.network import linux_net
from nova.network import model as network_model
from nova.openstack.common import log as logging
Expand Down Expand Up @@ -758,36 +757,3 @@ def unplug(self, instance, vif):
raise exception.NovaException(
_("Unexpected vif_type=%s") % vif_type)
func(instance, vif)

# The following classes were removed in the transition from Havana to
# Icehouse, but may still be referenced in configuration files. The
# following stubs allow those configurations to work while logging a
# deprecation warning.


class _LibvirtDeprecatedDriver(LibvirtGenericVIFDriver):
def __init__(self, *args, **kwargs):
LOG.warn(_LW('VIF driver \"%s\" is marked as deprecated and will be '
'removed in the Juno release.'),
self.__class__.__name__)
super(_LibvirtDeprecatedDriver, self).__init__(*args, **kwargs)


class LibvirtBridgeDriver(_LibvirtDeprecatedDriver):
pass


class LibvirtOpenVswitchDriver(_LibvirtDeprecatedDriver):
pass


class LibvirtHybridOVSBridgeDriver(_LibvirtDeprecatedDriver):
pass


class LibvirtOpenVswitchVirtualPortDriver(_LibvirtDeprecatedDriver):
pass


class NeutronLinuxBridgeVIFDriver(_LibvirtDeprecatedDriver):
pass

0 comments on commit 894fbae

Please sign in to comment.