[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-535] Implementation of E2 Removal Procedure...
[o-du/l2.git] / src / ric_stub / ric_stub.h
index c09f71e..3885d5b 100644 (file)
@@ -48,7 +48,7 @@
 #define RIC_POOL 1
 #define MAX_RAN_FUNCTION 256        /* O-RAN.WG3.E2AP-R003-v03.00 : Section 9.1.2.2 : maxofRANfunctionID */
 #define MAX_NUM_TRANSACTION 256     /* As per, O-RAN WG3 E2AP v3.0, section 9.2.33 */
-
+#define MAX_E2_NODE_COMPONENT 1024     /* O-RAN.WG3.E2AP-R003-v03.00 : Section 9.1.2.2 : maxofE2nodeComponents */
 #define MAX_RIC_ACTION  16          /* O-RAN.WG3.E2AP-R003-v03.00 : Section 9.1.1.1 : maxofRICActionID */
 #define MAX_RIC_REQUEST 5           /* As per O-RAN.WG3.E2AP-R003-v03.00 : Section 9.2.7, max request is 65535. \
                                      * But for our internal testing purpose, keeping it to 5 for now */
@@ -108,6 +108,7 @@ typedef struct
 typedef struct ricSubscription
 {
    RicRequestId    requestId;
+   uint16_t        ranFuncId;
    uint8_t         numOfActions;
    ActionInfo      actionSequence[MAX_RIC_ACTION];
 }RicSubscription;
@@ -116,8 +117,7 @@ typedef struct
 {
    uint16_t  id;
    uint16_t  revisionCounter;
-   uint8_t   numOfSubscription;
-   RicSubscription subscriptionList[MAX_RIC_REQUEST];
+   CmLListCp  subscriptionList;
 }RanFunction;
 
 typedef struct
@@ -132,7 +132,7 @@ typedef struct duDb
    uint8_t         ricTransIdCounter;
    uint16_t        numOfRanFunction;
    RanFunction     ranFunction[MAX_RAN_FUNCTION];
-   E2NodeComponent e2NodeComponent;
+   CmLListCp       e2NodeComponent;
 }DuDb;
 
 typedef struct ricCfgParams
@@ -179,6 +179,22 @@ typedef struct
    ActionFailed actionRemovalFailedList[MAX_RIC_ACTION];
 }RicTmpActionList;
 
+typedef struct e2NodeCfgItem
+{
+   E2NodeComponent componentInfo;
+   bool           isSuccessful;
+}E2NodeConfigItem;
+
+typedef struct e2NodeCfgList
+{
+   uint16_t addedE2NodeCount;
+   E2NodeConfigItem addedE2Node[MAX_E2_NODE_COMPONENT];
+   uint16_t updatedE2NodeCount;
+   E2NodeConfigItem updatedE2Node[MAX_E2_NODE_COMPONENT];
+   uint16_t removedE2NodeCount;
+   E2NodeConfigItem removedE2Node[MAX_E2_NODE_COMPONENT];
+}E2NodeConfigList;
+
 void readRicCfg();
 void cuAppInmsgHdlr(Buffer *mBuf);
 void sctpNtfyInd(CmInetSctpNotification *ntfy);