Browse Source

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
Huan Xie 2 years ago
parent
commit
beae63e184

+ 2
- 2
plugin_source/deployment_scripts/patchset/support-vif-hotplug.patch View File

@@ -21,7 +21,7 @@ index 77483fa..899c083 100644
21 21
          """
22 22
          return self._vmops.get_per_instance_usage()
23 23
 +
24
-+    def attach_interface(self, context, instance, image_meta, vif):
24
++    def attach_interface(self, instance, image_meta, vif):
25 25
 +        """Use hotplug to add a network interface to a running instance.
26 26
 +
27 27
 +        The counter action to this is :func:`detach_interface`.
@@ -40,7 +40,7 @@ index 77483fa..899c083 100644
40 40
 +        """
41 41
 +        self._vmops.attach_interface(instance, vif)
42 42
 +
43
-+    def detach_interface(self, context, instance, vif):
43
++    def detach_interface(self, instance, vif):
44 44
 +        """Use hotunplug to remove a network interface from a running instance.
45 45
 +
46 46
 +        The counter action to this is :func:`attach_interface`.

Loading…
Cancel
Save