Argument should have 2 params
Correcting example Change-Id: I8ad697841117c4a0d529d61415cb17e54aadc5aa
This commit is contained in:
parent
9ec0b9e66b
commit
103dc6c74f
@ -67,13 +67,13 @@ argument of type `os_vif.objects.VIF`::
|
|||||||
# Now do the actual plug operations to connect the VIF to
|
# Now do the actual plug operations to connect the VIF to
|
||||||
# the backing network interface.
|
# the backing network interface.
|
||||||
try:
|
try:
|
||||||
os_vif.plug(vif)
|
os_vif.plug(vif, instance_info)
|
||||||
except vif_exc.PlugException as err:
|
except vif_exc.PlugException as err:
|
||||||
# Handle the failure...
|
# Handle the failure...
|
||||||
|
|
||||||
# If you are removing a virtual machine and its interfaces,
|
# If you are removing a virtual machine and its interfaces,
|
||||||
# you would use the unplug() operation:
|
# you would use the unplug() operation:
|
||||||
try:
|
try:
|
||||||
os_vif.unplug(vif)
|
os_vif.unplug(vif, instance_info)
|
||||||
except vif_exc.UnplugException as err:
|
except vif_exc.UnplugException as err:
|
||||||
# Handle the failure...
|
# Handle the failure...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user