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
(cherry picked from commit beae63e184)
This commit is contained in:
Huan Xie 2017-03-06 02:10:33 -08:00
parent 907752878b
commit 2cfbdb1c74
1 changed files with 2 additions and 2 deletions

View File

@ -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`.