Add instructions to tackerclient

Add attach/detach interface instructions to tackerclient.

Change-Id: I00235e2150fd1d44111ceb2a4a9a7bba2b5d82ac
This commit is contained in:
changzhi 2015-07-17 11:38:10 +08:00
parent cc5e786f08
commit 0c3c5750c8

View File

@ -177,10 +177,14 @@ class _XtachInterface(tackerV10.UpdateCommand):
class AttachInterface(_XtachInterface):
"""Attach a network interface to a server."""
def call_api(self, tacker_client, device_id, body):
return tacker_client.attach_interface(device_id, body)
class DetachInterface(_XtachInterface):
"""Detach a network interface from a server."""
def call_api(self, tacker_client, device_id, body):
return tacker_client.detach_interface(device_id, body)