Revision 792af3ad
b/lib/client/gnt_node.py | ||
---|---|---|
476 | 476 |
|
477 | 477 |
oob_command = "power-%s" % command |
478 | 478 |
|
479 |
op = opcodes.OpOutOfBand(node_name=node, command=oob_command)
|
|
479 |
op = opcodes.OpOobCommand(node_name=node, command=oob_command)
|
|
480 | 480 |
result = SubmitOpCode(op, opts=opts) |
481 | 481 |
if result: |
482 | 482 |
if oob_command == constants.OOB_POWER_STATUS: |
b/lib/cmdlib.py | ||
---|---|---|
3234 | 3234 |
return result |
3235 | 3235 |
|
3236 | 3236 |
|
3237 |
class LUOutOfBand(NoHooksLU):
|
|
3237 |
class LUOobCommand(NoHooksLU):
|
|
3238 | 3238 |
"""Logical unit for OOB handling. |
3239 | 3239 |
|
3240 | 3240 |
""" |
b/lib/mcpu.py | ||
---|---|---|
211 | 211 |
opcodes.OpTestAllocator: cmdlib.LUTestAllocator, |
212 | 212 |
opcodes.OpTestJobqueue: cmdlib.LUTestJobqueue, |
213 | 213 |
# OOB lu |
214 |
opcodes.OpOutOfBand: cmdlib.LUOutOfBand,
|
|
214 |
opcodes.OpOobCommand: cmdlib.LUOobCommand,
|
|
215 | 215 |
} |
216 | 216 |
|
217 | 217 |
def __init__(self, context, ec_id): |
b/lib/opcodes.py | ||
---|---|---|
370 | 370 |
] |
371 | 371 |
|
372 | 372 |
|
373 |
class OpOutOfBand(OpCode):
|
|
373 |
class OpOobCommand(OpCode):
|
|
374 | 374 |
"""Interact with OOB.""" |
375 |
OP_ID = "OP_OUT_OF_BAND"
|
|
375 |
OP_ID = "OP_OOB_COMMAND"
|
|
376 | 376 |
__slots__ = [ |
377 | 377 |
"node_name", |
378 | 378 |
"command", |
Also available in: Unified diff