Add context to attach/detach_interface

A context argument was added to nova's virt driver attach_interface
and detach_interface methods [1]. This updates the powervm virt
driver accordingly.

[1] 41591c9456fd4eb91407551b9b9898e8f4974050

Change-Id: I75aa6569f2dd8beb79692d4589a93ff675a222b7
This commit is contained in:
esberglu 2017-09-19 14:05:33 -05:00 committed by Eric Fried
parent bc0b8d0d27
commit 4db2a16448
1 changed files with 2 additions and 2 deletions

View File

@ -972,11 +972,11 @@ class PowerVMDriver(driver.ComputeDriver):
out, err = n_utils.execute('env', 'LANG=C', 'uptime')
return out
def attach_interface(self, instance, image_meta, vif):
def attach_interface(self, context, instance, image_meta, vif):
"""Attach an interface to the instance."""
self.plug_vifs(instance, [vif])
def detach_interface(self, instance, vif):
def detach_interface(self, context, instance, vif):
"""Detach an interface from the instance."""
self.unplug_vifs(instance, [vif])