X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Fxapp%2Fdb.go;h=fc250f0feff3efa2e73cc2bc6d38e9d1098b6054;hb=refs%2Fchanges%2F77%2F1077%2F1;hp=cb5a04eb100322c01d0843024db8ab1186ccafa2;hpb=f6359241e9d6b402328f310550b575be1c140dcb;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/db.go b/pkg/xapp/db.go index cb5a04e..fc250f0 100755 --- a/pkg/xapp/db.go +++ b/pkg/xapp/db.go @@ -20,7 +20,6 @@ package xapp import ( - rnibcommon "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common" rnibentities "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities" rnibreader "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/reader" sdl "gerrit.o-ran-sc.org/r/ric-plt/sdlgo" @@ -64,7 +63,7 @@ type UENIBClient struct { type RNIBNodeType = rnibentities.Node_Type type RNIBGlobalNbId = rnibentities.GlobalNbId type RNIBNodebInfo = rnibentities.NodebInfo -type RNIBIRNibError = rnibcommon.IRNibError +type RNIBIRNibError = error type RNIBCells = rnibentities.Cells type RNIBNbIdentity = rnibentities.NbIdentity type RNIBCellType = rnibentities.Cell_Type @@ -209,8 +208,8 @@ func (u *UENIBClient) SubscribeEvents(gNbIDs []string, eventCategories []EventCa } func NewRNIBClient(ns string) *RNIBClient { - rnibreader.Init("rnib", 1) - rnibwriter.InitWriter("rnib", 1) + rnibreader.Init("e2Manager", 1) + rnibwriter.InitWriter("e2Manager", 1) return &RNIBClient{ reader: nil, writer: nil, @@ -229,11 +228,11 @@ func (r *RNIBClient) GetCellList(invName string) (*RNIBCells, RNIBIRNibError) { return rnibreader.GetRNibReader().GetCellList(invName) } -func (r *RNIBClient) GetListGnbIds() (*[]*RNIBNbIdentity, RNIBIRNibError) { +func (r *RNIBClient) GetListGnbIds() ([]*RNIBNbIdentity, RNIBIRNibError) { return rnibreader.GetRNibReader().GetListGnbIds() } -func (r *RNIBClient) GetListEnbIds() (*[]*RNIBNbIdentity, RNIBIRNibError) { +func (r *RNIBClient) GetListEnbIds() ([]*RNIBNbIdentity, RNIBIRNibError) { return rnibreader.GetRNibReader().GetListEnbIds() }