IPMI changes to support port changes
Changes:
- Added "-p" option with defaulted to port 623.
Change-Id: I4a49505f6ecf1a234caebaf74ed6499b1a8c2fe5
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/gen_cmd.py b/lib/gen_cmd.py
index a654828..18b79e9 100644
--- a/lib/gen_cmd.py
+++ b/lib/gen_cmd.py
@@ -628,10 +628,10 @@
my_pgm -i -m 1 --password="${my_pw}" /tmp/myfile
command_string = create_command_string('ipmitool', 'power status',
- I='lanplus', C='3', U='root', P='0penBmc', H='xx.xx.xx.xx')
+ I='lanplus', C='3', 'p=623', U='root', P='0penBmc', H='xx.xx.xx.xx')
Result:
- ipmitool -I lanplus -C 3 -U root -P 0penBmc -H xx.xx.xx.xx power status
+ ipmitool -I lanplus -C 3 -p 623 -U root -P 0penBmc -H xx.xx.xx.xx power status
By default create_command_string will take measures to preserve the order of the callers options. In
some cases, this effort may fail (as when calling directly from a robot program). In this case, the