Revision 42d4d8b9 lib/rapi/rlib2.py

b/lib/rapi/rlib2.py
397 397
    return baserlib.MapFields(N_FIELDS, result[0])
398 398

  
399 399

  
400
class R_2_nodes_name_powercycle(baserlib.OpcodeResource):
401
  """/2/nodes/[node_name]/powercycle resource.
402

  
403
  """
404
  POST_OPCODE = opcodes.OpNodePowercycle
405

  
406
  def GetPostOpInput(self):
407
    """Tries to powercycle a node.
408

  
409
    """
410
    return (self.request_body, {
411
      "node_name": self.items[0],
412
      "force": self.useForce(),
413
      })
414

  
415

  
400 416
class R_2_nodes_name_role(baserlib.OpcodeResource):
401 417
  """/2/nodes/[node_name]/role resource.
402 418

  

Also available in: Unified diff