Code Review
/
ric-plt
/
rtmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Switch to RMR Si95 mode
[ric-plt/rtmgr.git]
/
pkg
/
rtmgr
/
rtmgr.go
diff --git
a/pkg/rtmgr/rtmgr.go
b/pkg/rtmgr/rtmgr.go
index
daf84b8
..
06d0f15
100644
(file)
--- a/
pkg/rtmgr/rtmgr.go
+++ b/
pkg/rtmgr/rtmgr.go
@@
-51,6
+51,8
@@
var (
"X2Setup": "6",
"Reset": "7",
"E2_TERM_INIT": "1100",
"X2Setup": "6",
"Reset": "7",
"E2_TERM_INIT": "1100",
+ "E2_TERM_KEEP_ALIVE_REQ": "1101",
+ "E2_TERM_KEEP_ALIVE_RESP": "1102",
"RAN_CONNECTED": "1200",
"RAN_RESTARTED": "1210",
"RAN_RECONFIGURED": "1220",
"RAN_CONNECTED": "1200",
"RAN_RESTARTED": "1210",
"RAN_RECONFIGURED": "1220",
@@
-119,11
+121,13
@@
var (
Eps Endpoints
Subs SubscriptionList
Eps Endpoints
Subs SubscriptionList
+ PrsCfg *PlatformRoutes
)
func GetPlatformComponents(configfile string) (*PlatformComponents, error) {
xapp.Logger.Debug("Invoked rtmgr.GetPlatformComponents(" + configfile + ")")
var rcfg ConfigRtmgr
)
func GetPlatformComponents(configfile string) (*PlatformComponents, error) {
xapp.Logger.Debug("Invoked rtmgr.GetPlatformComponents(" + configfile + ")")
var rcfg ConfigRtmgr
+ var rtroutes RtmgrRoutes
yamlFile, err := os.Open(configfile)
if err != nil {
return nil, errors.New("cannot open the file due to: " + err.Error())
yamlFile, err := os.Open(configfile)
if err != nil {
return nil, errors.New("cannot open the file due to: " + err.Error())
@@
-137,6
+141,12
@@
func GetPlatformComponents(configfile string) (*PlatformComponents, error) {
if err != nil {
return nil, errors.New("cannot read the file due to: " + err.Error())
}
if err != nil {
return nil, errors.New("cannot read the file due to: " + err.Error())
}
+ err = json.Unmarshal(jsonByteValue,&rtroutes)
+ if err != nil {
+ return nil, errors.New("cannot parse data due to: " + err.Error())
+ }
+ PrsCfg = &(rtroutes.Prs)
+
err = json.Unmarshal(jsonByteValue, &rcfg)
if err != nil {
return nil, errors.New("cannot parse data due to: " + err.Error())
err = json.Unmarshal(jsonByteValue, &rcfg)
if err != nil {
return nil, errors.New("cannot parse data due to: " + err.Error())