You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Shuicheng Lin
cca4dc0c54
Implement FaultAPIsV2 to distinguish fail and no data case
...
Current FaultAPIs (get_fault/get_faults/get_faults_by_id) cannot
distinguish error and no data case. None will be returned for both
case. To separate these two cases, and implement the code more as
pythonic way, FaultAPIsV2 is added, which will raise exception for
error case.
In order to separate the cases, the C functions called by API are
modified to return FALSE for error, and return None for no data.
Test:
Pass basic deploy test, and "fm alarm-*" cmd work as before.
Use fm_api_test.py/fm_api_v2_test.py to manual trigger API call,
confirm alarm could be created/get/deleted, and value is the same
as "fm alarm-list".
Modify fmManager to simulate error case, confirm exception is
generated for FaultAPIsV2, and behavior is not changed for
FaultAPIs.
Story: 2004859
Task: 29097
Change-Id: Ic1c0a15eb8dfec6c368099b096d6a158da0d3c77
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
4 years ago
..
LICENSE
StarlingX open source release updates
5 years ago
Makefile
Improve security by avoiding buffer overflows
4 years ago
fmAPI.cpp
StarlingX open source release updates
5 years ago
fmAPI.h
StarlingX open source release updates
5 years ago
fmAlarm.h
StarlingX open source release updates
5 years ago
fmAlarmUtils.cpp
fix issue: fmClient segfaults on short string parameter
4 years ago
fmAlarmUtils.h
StarlingX open source release updates
5 years ago
fmConfig.cpp
Decouple Fault Management from stx-config
5 years ago
fmConfig.h
Decouple Fault Management from stx-config
5 years ago
fmConstants.h
Standardize install target for fm-common.
4 years ago
fmDb.cpp
Decouple Fault Management from stx-config
5 years ago
fmDb.h
Decouple Fault Management from stx-config
5 years ago
fmDbAPI.h
StarlingX open source release updates
5 years ago
fmDbAlarm.cpp
replace strncpy by snprintf
4 years ago
fmDbAlarm.h
Decouple Fault Management from stx-config
5 years ago
fmDbEventLog.cpp
replace strncpy by snprintf
4 years ago
fmDbEventLog.h
Decouple Fault Management from stx-config
5 years ago
fmDbUtils.cpp
free memory when it is no longer in use
4 years ago
fmDbUtils.h
Decouple Fault Management from stx-config
5 years ago
fmEventSuppression.cpp
Decouple Fault Management from stx-config
5 years ago
fmEventSuppression.h
Decouple Fault Management from stx-config
5 years ago
fmFile.cpp
StarlingX open source release updates
5 years ago
fmFile.h
StarlingX open source release updates
5 years ago
fmLog.cpp
Decouple Fault Management from stx-config
5 years ago
fmLog.h
Decouple Fault Management from stx-config
5 years ago
fmMsg.h
StarlingX open source release updates
5 years ago
fmMsgServer.cpp
Decouple Fault Management from stx-config
5 years ago
fmMsgServer.h
StarlingX open source release updates
5 years ago
fmMutex.cpp
StarlingX open source release updates
5 years ago
fmMutex.h
StarlingX open source release updates
5 years ago
fmSnmpConstants.h
Decouple Fault Management from stx-config
5 years ago
fmSnmpUtils.cpp
Avoid null check for reference in fm_snmp_util_gen_trap
5 years ago
fmSnmpUtils.h
Decouple Fault Management from stx-config
5 years ago
fmSocket.cpp
StarlingX open source release updates
5 years ago
fmSocket.h
StarlingX open source release updates
5 years ago
fmThread.cpp
StarlingX open source release updates
5 years ago
fmThread.h
StarlingX open source release updates
5 years ago
fmTime.cpp
StarlingX open source release updates
5 years ago
fmTime.h
StarlingX open source release updates
5 years ago
fm_cli.cpp
StarlingX open source release updates
5 years ago
fm_db_sync_event_suppression.py
Decouple Fault Management from stx-config
5 years ago
fm_python_mod_main.cpp
Implement FaultAPIsV2 to distinguish fail and no data case
4 years ago
setup.py
Add hooks for python wheel generation
4 years ago