X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2FrnibBuilders%2Fnode_info_builder.go;h=bfee4f66044f90178ca5b90423cfb1403f4d8a55;hb=7b3d4e4225b50207370fae28e53f476bea309df8;hp=53c341184c6a8a9032b3b2641452d87edea81206;hpb=07ef76dd471a0892a893c90e0ab06713aee34be1;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/rnibBuilders/node_info_builder.go b/E2Manager/rnibBuilders/node_info_builder.go index 53c3411..bfee4f6 100644 --- a/E2Manager/rnibBuilders/node_info_builder.go +++ b/E2Manager/rnibBuilders/node_info_builder.go @@ -13,7 +13,10 @@ // 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 rnibBuilders @@ -22,14 +25,16 @@ import ( "e2mgr/models" ) -func CreateInitialNodeInfo(requestDetails *models.RequestDetails) (*entities.NodebInfo, *entities.NbIdentity) { +func CreateInitialNodeInfo(requestDetails *models.SetupRequest, protocol entities.E2ApplicationProtocol) (*entities.NodebInfo, *entities.NbIdentity) { nodebInfo := &entities.NodebInfo{} nodebInfo.Ip = requestDetails.RanIp nodebInfo.Port = uint32(requestDetails.RanPort) nodebInfo.ConnectionStatus = entities.ConnectionStatus_CONNECTING + nodebInfo.E2ApplicationProtocol = protocol nodebInfo.RanName = requestDetails.RanName + nodebInfo.ConnectionAttempts = 0 nodebIdentity := &entities.NbIdentity{} nodebIdentity.InventoryName = requestDetails.RanName return nodebInfo, nodebIdentity -} +} \ No newline at end of file