Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implementation of function for filling k0 and k1 table [Issue-ID: ODUHIGH-341]
[o-du/l2.git]
/
src
/
ric_stub
/
ric_stub.c
diff --git
a/src/ric_stub/ric_stub.c
b/src/ric_stub/ric_stub.c
index
90f481c
..
bbb4dde
100644
(file)
--- a/
src/ric_stub/ric_stub.c
+++ b/
src/ric_stub/ric_stub.c
@@
-23,7
+23,7
@@
#include "du_log.h"
#ifdef O1_ENABLE
#include "du_log.h"
#ifdef O1_ENABLE
-#include "Config.h"
+#include "Config
Interface
.h"
#endif
#define RIC_ID 1
#endif
#define RIC_ID 1
@@
-51,9
+51,7
@@
#define PLMN_MNC2 0
#ifdef O1_ENABLE
#define PLMN_MNC2 0
#ifdef O1_ENABLE
-
extern StartupConfig g_cfg;
extern StartupConfig g_cfg;
-
#endif
/*******************************************************************
#endif
/*******************************************************************
@@
-137,10
+135,13
@@
void readRicCfg()
DU_LOG("\nINFO --> RIC : Reading RIC configurations");
#ifdef O1_ENABLE
DU_LOG("\nINFO --> RIC : Reading RIC configurations");
#ifdef O1_ENABLE
- if( getStartupConfig(&g_cfg) != ROK )
+ if( getStartupConfig
ForStub
(&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);
cmInetAddr((S8*)g_cfg.DU_IPV4_Addr, &ipv4_du);
cmInetAddr((S8*)g_cfg.RIC_IPV4_Addr, &ipv4_ric);