Skip to content

Commit

Permalink
RDKB-56045 : [MAPT] [Sprint] DHCPV4 client is running and erouter0 ha…
Browse files Browse the repository at this point in the history
…s ipv4 in MAPT mode (#43)

Reason for change: Enabling WanManager MAPT dml if MAPT RFC is enabled

Test Procedure:
Updated in Jira.

Risks: none
Priority: P1

Signed-off-by: parthiban.selvaraj <parthiban.selvaraj@sky.uk>
  • Loading branch information
S-Parthiban-Selvaraj authored Jul 17, 2024
1 parent e003a74 commit 93133fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/TR-181/middle_layer_src/wanmgr_rdkbus_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,19 @@ int get_Virtual_Interface_FromPSM(ULONG instancenum, ULONG virtInsNum ,DML_VIRTU
_ansc_sprintf(param_name, PSM_WANMANAGER_IF_VIRIF_ENABLE_MAPT, instancenum, (virtInsNum + 1));
retPsmGet = WanMgr_RdkBus_GetParamValuesFromDB(param_name,param_value,sizeof(param_value));

/* Checking MAPT_Enable syscfg to handle RFC migration scenarios */
char maptRfc[16] ={0};
syscfg_get(NULL, "MAPT_Enable", maptRfc, sizeof(maptRfc));

if(strcmp(param_value, PSM_ENABLE_STRING_TRUE) == 0)
{
pVirtIf->EnableMAPT = TRUE;
}
else if( strcmp(maptRfc, "true") == 0)
{
CcspTraceInfo(("%s %d Enabling MAPT based on MAPT_Enable syscfg \n", __FUNCTION__, __LINE__));
pVirtIf->EnableMAPT = TRUE;
}

_ansc_memset(param_name, 0, sizeof(param_name));
_ansc_memset(param_value, 0, sizeof(param_value));
Expand Down

0 comments on commit 93133fe

Please sign in to comment.