5 "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common"
6 "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/reader"
7 "gerrit.o-ran-sc.org/r/ric-plt/sdlgo"
14 var sdl common.ISdlInstance
15 var instance reader.RNibReader
17 type response struct {
18 GnbList []string `json:"gnb_list"`
23 sdl = sdlgo.NewSdlInstance("e2Manager", sdlgo.NewDatabase())
24 instance = reader.GetRNibReader(sdl)
32 //export getListGnbIds
33 func getListGnbIds() unsafe.Pointer {
34 listGnbIds, err := instance.GetListGnbIds()
35 if err != nil || listGnbIds == nil{
40 for _, value := range listGnbIds {
41 gnbList = append(gnbList, value.InventoryName)
47 byteResponse, err := json.Marshal(res)
52 return C.CBytes(byteResponse)