Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Update eNB REST API & Update gNB REST API


Info
titleAgenda



eNBgNBNotes

PUT /v1/nodeb/enb/<RAN_NAME> is triggered

, request

PUT /v1/nodeb/gnb/<RAN_NAME> is triggered

→ Request body is validated

Execute GetNodeb with RAN name coming from the request

.

If we have a DB error or if it doesn't exist → error

Execute RemoveServedCells to remove the existing eNB cells

Execute RemoveServedNrCells to remove the existing gNB cells


Set the nodeb with the request's data


Execute

UpdateEnb 

UpdateEnb

Execute UpdateGnbCells

Set cells in both Cell ID key & PCI key

Set nodeb in both RAN ID key & RAN NAME key

Execute sdl.SetAndPublish, sending the RAN_MANIPULATION channel and the <RAN_NAME>_UPDATED event.

Return 

Status
colourGreen
title200 OK
 with NodebInfo response.





PUT /v1/nodeb/enb/<RAN_NAME>PUT /v1/nodeb/gnb/<RAN_NAME>


Code Block
titleRequest Body
{
	"enb": {
			"enbType": "",
			"servedCells": [{}],
			"guGroupIds": [""]
	}
}



Code Block
titleRequest Body
{
  "servedNrCells": [
    {
      "servedNrCellInformation": {},
      "nrNeighbourInfos": [{}]
    }
  ]
}




UpdateNodebHandler

Image Added


Sequence Diagram

Image Added

View file
nameUpdate eNB & Update gNB REST APIs.txt
height150

Delete eNB REST API


Info
titleAgenda
  • DELETE /v1/nodeb/enb/<RAN_NAME> is triggered.
  • Execute GetNodeb with RAN name coming from the request.
    • If we have a DB error or if it doesn't exist → error
    • If nodeb is of type gNB → error
  • Execute RemoveEnb 
    • Remove cells from both Cell ID key & PCI key (call RemoveServedCells)
    • Remove nodeb from both RAN ID key & RAN NAME key
    • Remove nbIdentity
    • Execute sdl.SetAndPublish(data,"RAN_MANIPULATION", "<RAN_NAME>_DELETED")
  • Return 
    Status
    colourGreen
    title204 No Content
     response.

...

Code Block
titleDeleteEnbRequestHandler
type DeleteEnbRequestHandler struct {
	logger 				*logger.Logger		
	rnibDataService		services.RNibDataService
}


Sequence Diagram

Image RemovedImage Added