Update CLI log collector for ports ( IPMI/ SSH / HTTPS )
Changes:
- Update code to complete the flow from test to log
collector
Tested:
- Ran from sandbox
robot -v OPENBMC_HOST:xx.xx.xx.xx2 -v FFDC_DEFAULT:0
tools/myffdc.robot
Change-Id: Id6cf765f59d9bb7294794fca9ccc4e81588c5671
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/ffdc_cli_robot_script.py b/lib/ffdc_cli_robot_script.py
index 9ff0e99..d31aa2d 100644
--- a/lib/ffdc_cli_robot_script.py
+++ b/lib/ffdc_cli_robot_script.py
@@ -13,6 +13,9 @@
HOST = "HOST"
USER = "USERNAME"
PASSWD = "PASSWORD"
+PORT_SSH = "SSH_PORT"
+PORT_HTTPS = "HTTPS_PORT"
+PORT_IPMI = "IPMI_PORT"
CONFIG = "CONFIG"
TYPE = "TYPE"
LOC = "LOCATION"
@@ -83,6 +86,15 @@
dict_of_parms["OPENBMC_PASSWORD"] = robotBuildIn().get_variable_value(
"${OPENBMC_PASSWORD}", default=None
)
+ dict_of_parms["SSH_PORT"] = robotBuildIn().get_variable_value(
+ "${SSH_PORT}", default=22
+ )
+ dict_of_parms["HTTPS_PORT"] = robotBuildIn().get_variable_value(
+ "${HTTPS_PORT}", default=443
+ )
+ dict_of_parms["IPMI_PORT"] = robotBuildIn().get_variable_value(
+ "${IPMI_PORT}", default=623
+ )
dict_of_parms["REMOTE_TYPE"] = "OPENBMC"
run_ffdc_collector(dict_of_parms)
@@ -136,6 +148,12 @@
username = dict_of_parm[key]
elif PASSWD in key:
password = dict_of_parm[key]
+ elif PORT_SSH in key:
+ port_ssh = dict_of_parm[key]
+ elif PORT_HTTPS in key:
+ port_https = dict_of_parm[key]
+ elif PORT_IPMI in key:
+ port_ipmi = dict_of_parm[key]
elif CONFIG in key:
config = dict_of_parm[key]
elif LOC in key:
@@ -185,6 +203,9 @@
remote,
username,
password,
+ port_ssh,
+ port_https,
+ port_ipmi,
config,
location,
remote_type,