summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/ipmitool.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-10-12 20:02:39 +0000
committerGerrit Code Review <review@openstack.org>2016-10-12 20:02:39 +0000
commit70b992ca57122c00ba8003fb6426d31fa177093d (patch)
treefd8575e0b3312bfac85de6e24472581184b3a52a /ironic/drivers/modules/ipmitool.py
parentcd4179af6670a63d72a4d1f76efb818d1ae90c32 (diff)
parenta04aeca9448c461c60a0bfe6bc4571167e1681ef (diff)
downloadironic-70b992ca57122c00ba8003fb6426d31fa177093d.tar.gz
Merge "Add description for vendor passthru methods"
Diffstat (limited to 'ironic/drivers/modules/ipmitool.py')
-rw-r--r--ironic/drivers/modules/ipmitool.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ironic/drivers/modules/ipmitool.py b/ironic/drivers/modules/ipmitool.py
index c06cee2d5..283c33eb6 100644
--- a/ironic/drivers/modules/ipmitool.py
+++ b/ironic/drivers/modules/ipmitool.py
@@ -1042,7 +1042,10 @@ class VendorPassthru(base.VendorInterface):
_constructor_checks(driver=self.__class__.__name__)
@METRICS.timer('VendorPassthru.send_raw')
- @base.passthru(['POST'])
+ @base.passthru(['POST'],
+ description=_("Send raw bytes to the BMC. Required "
+ "argument: 'raw_bytes' - a string of raw "
+ "bytes (e.g. '0x00 0x01')."))
@task_manager.require_exclusive_lock
def send_raw(self, task, http_method, raw_bytes):
"""Send raw bytes to the BMC. Bytes should be a string of bytes.
@@ -1058,7 +1061,10 @@ class VendorPassthru(base.VendorInterface):
send_raw(task, raw_bytes)
@METRICS.timer('VendorPassthru.bmc_reset')
- @base.passthru(['POST'])
+ @base.passthru(['POST'],
+ description=_("Reset the BMC. Required argument: 'warm' "
+ "(Boolean) - for warm (True) or cold (False) "
+ "reset."))
@task_manager.require_exclusive_lock
def bmc_reset(self, task, http_method, warm=True):
"""Reset BMC with IPMI command 'bmc reset (warm|cold)'.