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
This commit is contained in:
parent
72fa7036e3
commit
beae63e184
|
@ -21,7 +21,7 @@ index 77483fa..899c083 100644
|
||||||
"""
|
"""
|
||||||
return self._vmops.get_per_instance_usage()
|
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.
|
+ """Use hotplug to add a network interface to a running instance.
|
||||||
+
|
+
|
||||||
+ The counter action to this is :func:`detach_interface`.
|
+ The counter action to this is :func:`detach_interface`.
|
||||||
|
@ -40,7 +40,7 @@ index 77483fa..899c083 100644
|
||||||
+ """
|
+ """
|
||||||
+ self._vmops.attach_interface(instance, vif)
|
+ 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.
|
+ """Use hotunplug to remove a network interface from a running instance.
|
||||||
+
|
+
|
||||||
+ The counter action to this is :func:`attach_interface`.
|
+ The counter action to this is :func:`attach_interface`.
|
||||||
|
|
Loading…
Reference in New Issue