Added support for ffdc_function_list to ffdc functions.
- This allows a user to specify what kinds of FFDC they want collected.
If they specify nothing for this parm, they got all possible kinds of
FFDC.
- Also, added some use of run_key to improve output and allow for
test_mode.
Change-Id: I96b40f0ddcea7269c0fe3828076ca489816b699a
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index 62072eb..01e6d48 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -211,6 +211,16 @@
"""
return FFDC_METHOD_CALL.keys()
+ def get_ffdc_method_desc(self,
+ index):
+ r"""
+ ########################################################################
+ # @brief This method returns the just the keys from the dictionary.
+ # @return List of ffdc descriptions.
+ ########################################################################
+ """
+ return FFDC_METHOD_CALL[index].keys()
+
def get_ffdc_method_call(self, i_type):
r"""
########################################################################