summaryrefslogtreecommitdiff
path: root/iotronic/conductor/rpcapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'iotronic/conductor/rpcapi.py')
-rw-r--r--iotronic/conductor/rpcapi.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/iotronic/conductor/rpcapi.py b/iotronic/conductor/rpcapi.py
index 4d5b333..223c993 100644
--- a/iotronic/conductor/rpcapi.py
+++ b/iotronic/conductor/rpcapi.py
@@ -249,3 +249,17 @@ class ConductorAPI(object):
249 """ 249 """
250 cctxt = self.client.prepare(topic=topic or self.topic, version='1.0') 250 cctxt = self.client.prepare(topic=topic or self.topic, version='1.0')
251 return cctxt.call(context, 'update_service', service_obj=service_obj) 251 return cctxt.call(context, 'update_service', service_obj=service_obj)
252
253 def action_service(self, context, service_uuid,
254 board_uuid, action, topic=None):
255 """Action on a service into a board.
256
257 :param context: request context.
258 :param service_uuid: service id or uuid.
259 :param board_uuid: board id or uuid.
260
261 """
262 cctxt = self.client.prepare(topic=topic or self.topic, version='1.0')
263
264 return cctxt.call(context, 'action_service', service_uuid=service_uuid,
265 board_uuid=board_uuid, action=action)