# The Jenkins job requires a tag to build the Docker image.
# Global-JJB script assumes this file is in the repo root.
---
-tag: 5.2.13
+tag: 5.2.14
_ = h.createNbIdentity(addEnbRequest) // TODO: add call to ranListManager
- return models.NewAddEnbResponse(nodebInfo), nil
+ return models.NewNodebResponse(nodebInfo), nil
}
func (h *AddEnbRequestHandler) createNodebInfo(addEnbRequest *models.AddEnbRequest) *entities.NodebInfo {
}
h.logger.Infof("#DeleteEnbRequestHandler.Handle - RAN name: %s - deleted successfully.", deleteEnbRequest.RanName)
- return models.NewDeleteEnbResponse(nodebInfo), nil
+ return models.NewNodebResponse(nodebInfo), nil
}
result, err := handler.Handle(&models.DeleteEnbRequest{RanName: ranName})
assert.Nil(t, err)
assert.NotNil(t, result)
- assert.IsType(t, &models.DeleteEnbResponse{}, result)
+ assert.IsType(t, &models.NodebResponse{}, result)
readerMock.AssertExpectations(t)
writerMock.AssertExpectations(t)
}
return nil, rnibErrorToE2ManagerError(err)
}
- return models.NewGetNodebResponse(nodeb), nil
+ return models.NewNodebResponse(nodeb), nil
}
func rnibErrorToE2ManagerError(err error) error {
response, err := handler.Handle(models.GetNodebRequest{RanName: ranName})
assert.Nil(t, err)
assert.NotNil(t, response)
- assert.IsType(t, &models.GetNodebResponse{}, response)
+ assert.IsType(t, &models.NodebResponse{}, response)
}
func TestHandleGetNodebFailure(t *testing.T) {
return nil, err
}
- return models.NewUpdateGnbResponse(nodebInfo), nil
+ return models.NewNodebResponse(nodebInfo), nil
}
func (h *UpdateGnbRequestHandler) updateGnbCells(nodebInfo *entities.NodebInfo, updateGnbRequest models.UpdateGnbRequest) error {
+++ /dev/null
-//
-// Copyright 2019 AT&T Intellectual Property
-// Copyright 2019 Nokia
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// This source code is part of the near-RT RIC (RAN Intelligent Controller)
-// platform project (RICP).
-
-package httpmsghandlers
+++ /dev/null
-//
-// Copyright 2019 AT&T Intellectual Property
-// Copyright 2019 Nokia
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// This source code is part of the near-RT RIC (RAN Intelligent Controller)
-// platform project (RICP).
-
-package managers
+++ /dev/null
-//
-// Copyright 2019 AT&T Intellectual Property
-// Copyright 2019 Nokia
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// This source code is part of the near-RT RIC (RAN Intelligent Controller)
-// platform project (RICP).
-
-package models
-
-import (
- "e2mgr/e2managererrors"
- "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
- "github.com/golang/protobuf/jsonpb"
-)
-
-type AddEnbResponse struct {
- nodebInfo *entities.NodebInfo
-}
-
-func NewAddEnbResponse(nodebInfo *entities.NodebInfo) *AddEnbResponse {
- return &AddEnbResponse{
- nodebInfo: nodebInfo,
- }
-}
-
-func (response *AddEnbResponse) Marshal() ([]byte, error) {
- m := jsonpb.Marshaler{}
- result, err := m.MarshalToString(response.nodebInfo)
-
- if err != nil {
- return nil, e2managererrors.NewInternalError()
- }
-
- return []byte(result), nil
-}
+++ /dev/null
-//
-// Copyright 2019 AT&T Intellectual Property
-// Copyright 2019 Nokia
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// This source code is part of the near-RT RIC (RAN Intelligent Controller)
-// platform project (RICP).
-
-package models
-
-import (
- "e2mgr/e2managererrors"
- "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
- "github.com/golang/protobuf/jsonpb"
-)
-
-type DeleteEnbResponse struct {
- nodebInfo *entities.NodebInfo
-}
-
-func NewDeleteEnbResponse(nodebInfo *entities.NodebInfo) *DeleteEnbResponse {
- return &DeleteEnbResponse{
- nodebInfo: nodebInfo,
- }
-}
-
-func (response *DeleteEnbResponse) Marshal() ([]byte, error) {
- m := jsonpb.Marshaler{}
- result, err := m.MarshalToString(response.nodebInfo)
-
- if err != nil {
- return nil, e2managererrors.NewInternalError()
- }
-
- return []byte(result), nil
-}
+++ /dev/null
-//
-// Copyright 2019 AT&T Intellectual Property
-// Copyright 2019 Nokia
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// This source code is part of the near-RT RIC (RAN Intelligent Controller)
-// platform project (RICP).
-
-
-package models
-
-import (
- "e2mgr/e2managererrors"
- "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
- "github.com/golang/protobuf/jsonpb"
-)
-
-type GetNodebResponse struct {
- nodebInfo *entities.NodebInfo
-}
-
-func NewGetNodebResponse(nodebInfo *entities.NodebInfo) *GetNodebResponse {
- return &GetNodebResponse{
- nodebInfo: nodebInfo,
- }
-}
-
-func (response *GetNodebResponse) Marshal() ([]byte, error) {
- m := jsonpb.Marshaler{}
- result, err := m.MarshalToString(response.nodebInfo)
-
- if err != nil {
- return nil, e2managererrors.NewInternalError()
- }
-
- return []byte(result), nil
-
-}
+++ /dev/null
-//
-// Copyright 2019 AT&T Intellectual Property
-// Copyright 2019 Nokia
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// This source code is part of the near-RT RIC (RAN Intelligent Controller)
-// platform project (RICP).
-
-package models
-
-import (
- "e2mgr/e2managererrors"
- "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
- "github.com/golang/protobuf/jsonpb"
-)
-
-type UpdateGnbResponse struct {
- nodebInfo *entities.NodebInfo
-}
-
-func NewUpdateGnbResponse(nodebInfo *entities.NodebInfo) *UpdateGnbResponse {
- return &UpdateGnbResponse{
- nodebInfo: nodebInfo,
- }
-}
-
-func (response *UpdateGnbResponse) Marshal() ([]byte, error) {
- m := jsonpb.Marshaler{}
- result, err := m.MarshalToString(response.nodebInfo)
-
- if err != nil {
- return nil, e2managererrors.NewInternalError()
- }
-
- return []byte(result), nil
-}
info:
title: E2 Manager Service
description: E2 Manager Service APIs
- version: 5.2.12
+ version: 5.2.14
servers:
- url: 'http://{apiRoot}/v1'
variables:
content:
application/json:
schema:
- $ref: '#/components/schemas/GetNodebResponse'
+ $ref: '#/components/schemas/NodebResponse'
'400':
description: The specified RAN name is invalid
content:
content:
application/json:
schema:
- $ref: '#/components/schemas/DeleteEnbResponse'
+ $ref: '#/components/schemas/NodebResponse'
'400':
description: The specified RAN is not ENB
content:
content:
application/json:
schema:
- $ref: '#/components/schemas/UpdateGnbResponse'
+ $ref: '#/components/schemas/NodebResponse'
'400':
description: Invalid input
content:
content:
application/json:
schema:
- $ref: '#/components/schemas/AddEnbResponse'
+ $ref: '#/components/schemas/NodebResponse'
'400':
description: Invalid input
content:
servedNrCells:
$ref: '#/components/schemas/ServedNrCells'
additionalProperties: false
- UpdateGnbResponse:
- properties:
- connectionStatus:
- oneOf:
- - type: string
- - type: integer
- failureType:
- oneOf:
- - type: string
- - type: integer
- globalNbId:
- properties:
- nbId:
- type: string
- plmnId:
- type: string
- additionalProperties: false
- type: object
- gnb:
- $ref: '#/components/schemas/Gnb'
- ip:
- type: string
- nodeType:
- oneOf:
- - type: string
- - type: integer
- port:
- type: integer
- ranName:
- type: string
- setupFailure:
- $ref: '#/components/schemas/SetupFailure'
- additionalProperties: false
- type: object
UpdateEnbRequest:
type: object
required:
inventoryName:
type: string
type: object
- GetNodebResponse:
- properties:
- connectionStatus:
- oneOf:
- - type: string
- - type: integer
- enb:
- $ref: '#/components/schemas/Enb'
- failureType:
- oneOf:
- - type: string
- - type: integer
- globalNbId:
- properties:
- nbId:
- type: string
- plmnId:
- type: string
- type: object
- gnb:
- $ref: '#/components/schemas/Gnb'
- ip:
- type: string
- nodeType:
- oneOf:
- - type: string
- - type: integer
- port:
- type: integer
- ranName:
- type: string
- setupFailure:
- $ref: '#/components/schemas/SetupFailure'
- additionalProperties: false
- type: object
ErrorResponse:
type: object
required:
enb:
$ref: '#/components/schemas/Enb'
additionalProperties: false
- AddEnbResponse:
- properties:
- connectionStatus:
- oneOf:
- - type: string
- - type: integer
- failureType:
- oneOf:
- - type: string
- - type: integer
- globalNbId:
- properties:
- nbId:
- type: string
- plmnId:
- type: string
- additionalProperties: false
- type: object
- enb:
- $ref: '#/components/schemas/Enb'
- ip:
- type: string
- nodeType:
- oneOf:
- - type: string
- - type: integer
- port:
- type: integer
- ranName:
- type: string
- setupFailure:
- $ref: '#/components/schemas/SetupFailure'
- additionalProperties: false
- type: object
- DeleteEnbResponse:
- properties:
- connectionStatus:
- oneOf:
- - type: string
- - type: integer
- failureType:
- oneOf:
- - type: string
- - type: integer
- globalNbId:
- properties:
- nbId:
- type: string
- plmnId:
- type: string
- additionalProperties: false
- type: object
- enb:
- $ref: '#/components/schemas/Enb'
- ip:
- type: string
- nodeType:
- oneOf:
- - type: string
- - type: integer
- port:
- type: integer
- ranName:
- type: string
- setupFailure:
- $ref: '#/components/schemas/SetupFailure'
- additionalProperties: false
- type: object
AdditionalCellInformation:
properties:
cellLatitude: