diff options
| author | Joe Gordon <jogo@cloudscaling.com> | 2013-04-04 01:28:59 +0000 |
|---|---|---|
| committer | Joe Gordon <jogo@cloudscaling.com> | 2013-04-04 11:00:41 -0700 |
| commit | 3a8b2daa461ceab51cd4642583c91b17e6fc9287 (patch) | |
| tree | d1a02d00c91ee642a7e0633e698ea99d29978771 | |
| parent | 820f43fc6113b39d55d13fbff8dca67eb954cfd9 (diff) | |
Deprecate old vif drivers.
As per commit 4c0cecd3 (Change-Id I292c2fd7aa0c32b1c91d737152ed8e54ea2cf6ac)
Deprecate:
* LibvirtBridgeDriver
* LibvirtOpenVswitchDriver
* LibvirtHybridOVSBridgeDriver
* LibvirtOpenVswitchVirtualPortDriver
* QuantumLinuxBridgeVIFDriver
Change-Id: Iad854dfe91aaa18622f78aa92746d3ea2f986960
| -rw-r--r-- | nova/virt/libvirt/vif.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py index c8a87bd3c..db7bb96d8 100644 --- a/nova/virt/libvirt/vif.py +++ b/nova/virt/libvirt/vif.py @@ -497,6 +497,11 @@ class LibvirtBridgeDriver(LibvirtGenericVIFDriver): Will be deprecated in Havana, and removed in Ixxxx.""" def get_config(self, instance, network, mapping, image_meta): + LOG.deprecated(_("The LibvirtBridgeDriver VIF driver is now " + "deprecated and will be removed in the next release. " + "Please use the LibvirtGenericVIFDriver VIF driver, " + "together with a network plugin that reports the " + "'vif_type' attribute")) return self.get_config_bridge(instance, network, mapping, image_meta) def plug(self, instance, vif): @@ -518,6 +523,11 @@ class LibvirtOpenVswitchDriver(LibvirtGenericVIFDriver): return mapping.get('ovs_interfaceid') or mapping['vif_uuid'] def get_config(self, instance, network, mapping, image_meta): + LOG.deprecated(_("The LibvirtOpenVswitchDriver VIF driver is now " + "deprecated and will be removed in the next release. " + "Please use the LibvirtGenericVIFDriver VIF driver, " + "together with a network plugin that reports the " + "'vif_type' attribute")) return self.get_config_ovs_ethernet(instance, network, mapping, image_meta) @@ -541,6 +551,11 @@ class LibvirtHybridOVSBridgeDriver(LibvirtGenericVIFDriver): return mapping.get('ovs_interfaceid') or mapping['vif_uuid'] def get_config(self, instance, network, mapping, image_meta): + LOG.deprecated(_("The LibvirtHybridOVSBridgeDriver VIF driver is now " + "deprecated and will be removed in the next release. " + "Please use the LibvirtGenericVIFDriver VIF driver, " + "together with a network plugin that reports the " + "'vif_type' attribute")) return self.get_config_ovs_hybrid(instance, network, mapping, image_meta) @@ -564,6 +579,11 @@ class LibvirtOpenVswitchVirtualPortDriver(LibvirtGenericVIFDriver): return mapping.get('ovs_interfaceid') or mapping['vif_uuid'] def get_config(self, instance, network, mapping, image_meta): + LOG.deprecated(_("The LibvirtOpenVswitchVirtualPortDriver VIF driver " + "is now deprecated and will be removed in the next " + "release. Please use the LibvirtGenericVIFDriver VIF " + "driver, together with a network plugin that reports " + "the 'vif_type' attribute")) return self.get_config_ovs_bridge(instance, network, mapping, image_meta) @@ -585,6 +605,11 @@ class QuantumLinuxBridgeVIFDriver(LibvirtGenericVIFDriver): return network.get('bridge') or def_bridge def get_config(self, instance, network, mapping, image_meta): + LOG.deprecated(_("The QuantumLinuxBridgeVIFDriver VIF driver is now " + "deprecated and will be removed in the next release. " + "Please use the LibvirtGenericVIFDriver VIF driver, " + "together with a network plugin that reports the " + "'vif_type' attribute")) # In order for libvirt to make use of the bridge name then it has # to ensure that the bridge exists if 'should_create_bridge' not in mapping: |
