}
- if(addOrModifyE2NodeComponent(F1, E2_NODE_COMPONENT_ADD, true, encBufSize, encBuf) !=ROK)
- {
- DU_LOG("\nERROR --> F1AP : Failed to add the e2 node in the list");
- break;
- }
+
/* Sending msg */
if(sendF1APMsg() != ROK)
{
DU_LOG("\nERROR --> F1AP : Sending F1 Setup request failed");
break;
}
+
+ if(fillE2NodeComponentReqInfo(F1, duCfgParam.duId, E2_NODE_COMPONENT_ADD, encBufSize, encBuf) !=ROK)
+ {
+ DU_LOG("\nERROR --> F1AP : Failed to add the e2 node in the list");
+ break;
+ }
ret=ROK;
break;
}
#endif
}
- if(addOrModifyE2NodeComponent(F1, E2_NODE_COMPONENT_UPDATE, true, encBufSize, encBuf)!=ROK)
- {
- DU_LOG("\nERROR --> F1AP : Failed to update the e2 node in the list");
- break;
- }
+
/* Sending msg */
if(sendF1APMsg() != ROK)
{
DU_LOG("\nERROR --> F1AP : Sending GNB-DU Config Update failed");
break;
}
+
+ if(fillE2NodeComponentReqInfo(F1, duCfgParam.duId, E2_NODE_COMPONENT_UPDATE, encBufSize, encBuf)!=ROK)
+ {
+ DU_LOG("\nERROR --> F1AP : Failed to update the e2 node in the list");
+ break;
+ }
ret = ROK;
break;
duProcF1SetupRsp();
freeAperDecodeF1SetupRsp(f1SetRspMsg);
- if(addOrModifyE2NodeComponent(F1, E2_NODE_COMPONENT_ADD, false, recvBufLen, recvBuf) !=ROK)
+ if(fillE2NodeComponentRspInfo(F1, duCfgParam.duId, E2_NODE_COMPONENT_ADD, recvBufLen, recvBuf) !=ROK)
{
DU_LOG("\nERROR --> F1AP : Failed to add the e2 node in the list");
return RFAILED;
}
#endif
- if(addOrModifyE2NodeComponent(F1, E2_NODE_COMPONENT_UPDATE, false, recvBufLen, recvBuf) !=ROK)
+ freeAperDecodeGnbDuAck(gnbDuAck);
+
+ if(fillE2NodeComponentRspInfo(F1,duCfgParam.duId, E2_NODE_COMPONENT_UPDATE, recvBufLen, recvBuf) !=ROK)
{
DU_LOG("\nERROR --> F1AP : Failed to update the e2 node in the list");
return RFAILED;
}
- freeAperDecodeGnbDuAck(gnbDuAck);
return ROK;
}
/******************************************************************