deploy: ipmi adapter: Add <port> config support. 07/14907/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 23 May 2016 20:06:09 +0000 (22:06 +0200)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Wed, 15 Jun 2016 08:19:21 +0000 (08:19 +0000)
commita2ee8e7efc66be53645c8b1d7c43b7740bc999cd
treed74cfcd1d6ede33ec2d0da09b5d0dec6851a92ca
parent8b192597ef66f45a820886bfe2489548a9fa807f
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>
deploy/dha_adapters/hp_adapter.py
deploy/dha_adapters/ipmi_adapter.py
deploy/reap.py