...
- Add the following methods:
Add the following methods:
Code Block |
---|
UpdateEnb(nb *entities.NodebInfo, servedCells []*entities.ServedCellInfo)
DeleteEnb()
|
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.
POST /v1/nodeb/enb
Request Body:
Code Block |
---|
{ "ranName": "", "globalNbId": { plmnId: "", nbId: "" }, "ip": "", "port": 1234, "enb": { "enbType": "", "servedCells": [{}], "guGroupIds": [""] } } |
Sequence Diagram
Update eNB REST API
...