...
Code Block | ||
---|---|---|
| ||
SaveNodeb(nbIdentity *entities.NbIdentity, nbnodebInfo *entities.NodebInfo) error |
...
- Add the following methods:
Code Block |
---|
UpdateEnb(nbnodebInfo *entities.NodebInfo, servedCells []*entities.ServedCellInfo) DeleteEnb(nodebInfo *entities.NodebInfo) |
Add eNB REST API
Agenda
- POST /v1/nodeb/enb is triggered, request body is validated
- Execute GetNodeb for the request's RAN. If we have a DB error or if it's already exists → error
- Create a NodebInfo struct with an Enb configuration, populate it with the request data and set its connection status to DISCONNECTED
- Execute SaveNodeb, where SetAndPublish will be triggered for eNB type, sending the RAN_MANIPULATION channel and the <RAN_NAME>_ADDED event.
- Return 201 Created with NodebInfo response.
...