From 17bc342c33caa0b6f2fbb01835e769de7dab639e Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 12 Jul 2019 16:37:14 +0100 Subject: [PATCH] vif: Remove 'plug_vhostuser', 'unplug_vhostuser' These will never be reached since the '_nova_to_osvif_vif_vhostuser' function in the 'nova.network.os_vif_util' provides as fallthrough case since change Ifab3006454708ab290b93f02d82b794c334c3946. Change-Id: I14ab55178692ff13df114a4c628430561df1a55e Signed-off-by: Stephen Finucane --- nova/virt/libvirt/vif.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py index 49470938ad..21d634fb27 100644 --- a/nova/virt/libvirt/vif.py +++ b/nova/virt/libvirt/vif.py @@ -694,9 +694,6 @@ class LibvirtGenericVIFDriver(object): mtu = network.get_meta('mtu') if network else None nova.privsep.linux_net.set_device_mtu(dev, mtu) - def plug_vhostuser(self, instance, vif): - pass - def _plug_os_vif(self, instance, vif): instance_info = os_vif_util.nova_to_osvif_instance(instance) @@ -813,9 +810,6 @@ class LibvirtGenericVIFDriver(object): except processutils.ProcessExecutionError: LOG.exception(_("Failed while unplugging vif"), instance=instance) - def unplug_vhostuser(self, instance, vif): - pass - def _unplug_os_vif(self, instance, vif): instance_info = os_vif_util.nova_to_osvif_instance(instance)