Skip to content

Commit 17bc342

Browse files
committed
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 <[email protected]>
1 parent ff0feed commit 17bc342

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

nova/virt/libvirt/vif.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,6 @@ def plug_tap(self, instance, vif):
694694
mtu = network.get_meta('mtu') if network else None
695695
nova.privsep.linux_net.set_device_mtu(dev, mtu)
696696

697-
def plug_vhostuser(self, instance, vif):
698-
pass
699-
700697
def _plug_os_vif(self, instance, vif):
701698
instance_info = os_vif_util.nova_to_osvif_instance(instance)
702699

@@ -813,9 +810,6 @@ def unplug_iovisor(self, instance, vif):
813810
except processutils.ProcessExecutionError:
814811
LOG.exception(_("Failed while unplugging vif"), instance=instance)
815812

816-
def unplug_vhostuser(self, instance, vif):
817-
pass
818-
819813
def _unplug_os_vif(self, instance, vif):
820814
instance_info = os_vif_util.nova_to_osvif_instance(instance)
821815

0 commit comments

Comments
 (0)