diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-05-23 22:06:09 +0200 |
---|---|---|
committer | Jonas Bjurel <jonas.bjurel@ericsson.com> | 2016-06-15 08:19:21 +0000 |
commit | a2ee8e7efc66be53645c8b1d7c43b7740bc999cd (patch) | |
tree | d74cfcd1d6ede33ec2d0da09b5d0dec6851a92ca /deploy/dha_adapters/hp_adapter.py | |
parent | 8b192597ef66f45a820886bfe2489548a9fa807f (diff) |
deploy: ipmi adapter: Add <port> 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 <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'deploy/dha_adapters/hp_adapter.py')
-rw-r--r-- | deploy/dha_adapters/hp_adapter.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |