Release image for e-release maintenance(5.0.3)
[o-du/l2.git] / src / ric_stub / ric_stub.c
index 7bfad92..0f36cb5 100644 (file)
@@ -23,7 +23,7 @@
 #include "du_log.h"
 
 #ifdef O1_ENABLE
-#include "Config.h"
+#include "CmInterface.h"
 #endif
 
 #define RIC_ID 1
@@ -36,8 +36,8 @@
 
 #define DU_IP_V4_ADDR "192.168.130.81"
 #define RIC_IP_V4_ADDR "192.168.130.80"
-#define DU_PORT 36422
-#define RIC_PORT 36422
+#define DU_PORT 36421
+#define RIC_PORT 36421
 
 #endif
 
@@ -51,9 +51,7 @@
 #define PLMN_MNC2 0
 
 #ifdef O1_ENABLE
-
 extern StartupConfig g_cfg;
-
 #endif
 
 /*******************************************************************
@@ -137,10 +135,13 @@ void readRicCfg()
    DU_LOG("\nINFO  --> RIC : Reading RIC configurations");
 
 #ifdef O1_ENABLE
-   if( getStartupConfig(&g_cfg) != ROK )
+   if( getStartupConfigForStub(&g_cfg) != ROK )
    {
-      RETVALUE(RFAILED);
+      DU_LOG("\nError  -->  RIC : Could not fetch startup "\
+             "configurations from Netconf interface\n");
+      exit(1);
    }
+
    cmInetAddr((S8*)g_cfg.DU_IPV4_Addr,  &ipv4_du);
    cmInetAddr((S8*)g_cfg.RIC_IPV4_Addr, &ipv4_ric);