From beae63e1849d6f5f14d0e77df248a1959d949fd5 Mon Sep 17 00:00:00 2001 From: Huan Xie Date: Mon, 6 Mar 2017 02:10:33 -0800 Subject: [PATCH] Support vif hotplug in Mitaka I have made a patch to apply several new patch file in nova-compute, see https://review.openstack.org/#/c/430030/, but these patch files are based on newton or ocata, for vif hotplug, the attach_interface API changed, there is a new parameter added after mitaka, see https://review.openstack.org/#/c/147126/, so this patch is to remove parameter context so it can be compatible with mitaka Change-Id: I7f767c21d87d61c13ba5d272f869628210dc5d02 --- .../deployment_scripts/patchset/support-vif-hotplug.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_source/deployment_scripts/patchset/support-vif-hotplug.patch b/plugin_source/deployment_scripts/patchset/support-vif-hotplug.patch index b56a66d..1dec234 100644 --- a/plugin_source/deployment_scripts/patchset/support-vif-hotplug.patch +++ b/plugin_source/deployment_scripts/patchset/support-vif-hotplug.patch @@ -21,7 +21,7 @@ index 77483fa..899c083 100644 """ return self._vmops.get_per_instance_usage() + -+ def attach_interface(self, context, instance, image_meta, vif): ++ def attach_interface(self, instance, image_meta, vif): + """Use hotplug to add a network interface to a running instance. + + The counter action to this is :func:`detach_interface`. @@ -40,7 +40,7 @@ index 77483fa..899c083 100644 + """ + self._vmops.attach_interface(instance, vif) + -+ def detach_interface(self, context, instance, vif): ++ def detach_interface(self, instance, vif): + """Use hotunplug to remove a network interface from a running instance. + + The counter action to this is :func:`attach_interface`.