From a2ee8e7efc66be53645c8b1d7c43b7740bc999cd Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 23 May 2016 22:06:09 +0200 Subject: deploy: ipmi adapter: Add config support. Sometimes the IPMI lanplus protocol listens on a non-standard remote port, e.g. when target nodes are interfaced through a fake IPMI BMC application that listens on multiple ports on the same IP address. Therefore, allow setting IPMI port in the DHA using a new property named `ipmiPort`, and pass it along to `ipmitool` when set. CHANGE: get_access_info now also supports specifying the IPMI port to use with `ipmitool` by configuring the `ipmiPort` property in the DHA. hp_adapter.py: updated `get_access_info` return signature with the new (unused there) `ipmiport`. Change-Id: I620176bd7f466aa460518cf12d15ccbe86a22560 Signed-off-by: Alexandru Avadanii --- deploy/dha_adapters/hp_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deploy/dha_adapters/hp_adapter.py') diff --git a/deploy/dha_adapters/hp_adapter.py b/deploy/dha_adapters/hp_adapter.py index 13bb3491a..6434da868 100644 --- a/deploy/dha_adapters/hp_adapter.py +++ b/deploy/dha_adapters/hp_adapter.py @@ -29,7 +29,7 @@ class HpAdapter(IpmiAdapter): def node_set_boot_order(self, node_id, boot_order_list): log('Set boot order %s on Node %s' % (boot_order_list, node_id)) - ip, username, password = self.get_access_info(node_id) + ip, username, password, ipmiport = self.get_access_info(node_id) ssh = SSHClient(ip, username, password) with ssh as s: for order, dev in enumerate(boot_order_list): -- cgit 1.2.3-korg