[]*NbIdentity,
manage a map of [string]*NbIdentity
, where key is inventoryName and value is the nbIdentity
.type RanListManager struct { rnibDataService services.RNibDataService mux sync.Mutex nbIdentityMap map[string]*NbIdentity } type IRanListManager interface { InitNbIdentityMap() error AddNbIdentity(nodeType entities.Node_Type, nbIdentity *entities.NbIdentity) error UpdateNbIdentityConnectionStatus(nodeType entities.Node_Type, ranName string, connectionStatus entities.ConnectionStatus) error RemoveNbIdentity(nodeType entities.Node_Type, ranName string) error GetNbIdentityList() []*entities.NbIdentity } |
|
SaveNodeb Calls will be followed by a ranListManager.AddNbIdentity(nodeType, nbIdentity) call. AFFECTED FLOWS
|
|
AFFECTED FLOWS
|
We shall modify the following methods:
SaveNodeb(nbIdentity *entities.NbIdentity, nodebInfo *entities.NodebInfo) error
SaveNodeb(nodebInfo *entities.NodebInfo) error
RemoveEnb(nodebInfo *entities.NodebInfo) error
AddNbIdentity(nodeType entities.Node_Type, nbIdentity *entities.NbIdentity) error UpdateNbIdentities(nodeType entities.Node_Type, oldNbIdentities []*entities.NbIdentity, newNbIdentities []*entities.NbIdentity) error RemoveNbIdentity(nodeType entities.Node_Type, nbIdentity *entities.NbIdentity) error |
We shall modify the following methods:
GetListNodebIds() ([]*entities.NbIdentity, error)