Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Changing E2 node connection status to reset.
[ric-plt/e2mgr.git]
/
E2Manager
/
handlers
/
httpmsghandlers
/
delete_enb_request_handler.go
diff --git
a/E2Manager/handlers/httpmsghandlers/delete_enb_request_handler.go
b/E2Manager/handlers/httpmsghandlers/delete_enb_request_handler.go
index
c346bb6
..
161d5c5
100644
(file)
--- a/
E2Manager/handlers/httpmsghandlers/delete_enb_request_handler.go
+++ b/
E2Manager/handlers/httpmsghandlers/delete_enb_request_handler.go
@@
-67,6
+67,11
@@
func (h *DeleteEnbRequestHandler) Handle(request models.Request) (models.IRespon
return nil, e2managererrors.NewRequestValidationError()
}
return nil, e2managererrors.NewRequestValidationError()
}
+ if nodebInfo.GetSetupFromNetwork() {
+ h.logger.Errorf("#DeleteEnbRequestHandler.Handle - RAN name: %s - can't delete RAN which was created from network.", deleteEnbRequest.RanName)
+ return nil, e2managererrors.NewRequestValidationError()
+ }
+
err = h.rNibDataService.RemoveEnb(nodebInfo)
if err != nil {
h.logger.Errorf("#DeleteEnbRequestHandler.Handle - RAN name: %s - failed to delete nodeb entity in RNIB. Error: %s", deleteEnbRequest.RanName, err)
err = h.rNibDataService.RemoveEnb(nodebInfo)
if err != nil {
h.logger.Errorf("#DeleteEnbRequestHandler.Handle - RAN name: %s - failed to delete nodeb entity in RNIB. Error: %s", deleteEnbRequest.RanName, err)