Skip to content

Commit e8ae7fd

Browse files
committed
RDKB-62330 : Selfheal to recover devices when subdoc version mismatch
Reason for change: Selfheal to recover devices when webconfig client and components have subdoc version mismatch. Test Procedure: Verify that when webconfig client and components have subdoc version mismatch the device should forcerest and recover the device. Priority: P1 Risks: None Signed-off-by: [email protected]
1 parent f347b44 commit e8ae7fd

File tree

4 files changed

+596
-1
lines changed

4 files changed

+596
-1
lines changed

source/TandDSsp/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CcspTandDSsp_CPPFLAGS += -I$(top_srcdir)/source/DevicePrioritization/TR-181
3333
CcspTandDSsp_CFLAGS = $(DEVICE_PRIORITIZATION_CFLAGS)
3434
endif
3535

36-
CcspTandDSsp_SOURCES = tad_rbus_apis.c ssp_messagebus_interface.c ssp_action_priv.c ssp_main.c ssp_action.c ssp_messagebus_interface_priv.c dm_pack_datamodel.c current_time.c
36+
CcspTandDSsp_SOURCES = tad_rbus_apis.c ssp_messagebus_interface.c ssp_action_priv.c ssp_main.c ssp_action.c ssp_messagebus_interface_priv.c dm_pack_datamodel.c current_time.c webcfg_selfheal.c
3737
CcspTandDSsp_LDFLAGS = -lccsp_common -ldl -rdynamic -lrbus -lsyscfg -lsecure_wrapper -ltelemetry_msgsender
3838

3939
CcspTandDSsp_DEPENDENCIES = ${top_builddir}/source/LatencyMeasurement/TR-181/libLowLatency.la \

source/TandDSsp/ssp_main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include "tad_rbus_apis.h"
5050
#include "lowlatency_apis.h"
5151
#include "current_time.h"
52+
#include "webcfg_selfheal.h"
5253
#include <telemetry_busmessage_sender.h>
5354

5455
#ifdef DEVICE_PRIORITIZATION_ENABLED
@@ -367,6 +368,14 @@ int main(int argc, char* argv[])
367368

368369
// Init LatencyMeasurent
369370
LatencyMeasurementInit();
371+
372+
// SelfHeal Subdoc Version Mismatch
373+
initWebcfgProperties(WEBCFG_PROPERTIES_FILE);
374+
int webcfg_ret = webcfg_subdoc_mismatch_boot_check();
375+
if (webcfg_ret != 0)
376+
{
377+
fprintf(stderr, "Error: webcfg_subdoc_mismatch_boot_check failed during initialization (ret=%d)\n", webcfg_ret);
378+
}
370379

371380
//crate a thread to update time thread for ethwan enable mode
372381
BOOL ethwanEnabled = FALSE;

0 commit comments

Comments
 (0)