RIC:1060: Change in PTL
[ric-plt/nodeb-rnib.git] / entities / nodeb_info.proto
1 /*
2  * Copyright 2019 AT&T Intellectual Property
3  * Copyright 2019 Nokia
4  * Copyright 2023 Capgemini
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 /*
20  * This source code is part of the near-RT RIC (RAN Intelligent Controller)
21  * platform project (RICP).
22  */
23
24
25 syntax = "proto3";
26 package entities;
27 import "gnb.proto";
28 import "enb.proto";
29 import "x2_setup_failure_response.proto";
30 import "nb_identity.proto";
31 option go_package = "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib/entities";
32
33 message NodebInfo {
34   string ran_name = 1;
35   string ip = 2;
36   uint32 port = 3;
37   E2ApplicationProtocol e2_application_protocol = 4;
38   ConnectionStatus connection_status = 5;
39   GlobalNbId global_nb_id = 6;
40   Node.Type node_type = 7;
41   oneof configuration {
42     Enb enb = 8;
43     Gnb gnb = 9;
44   }
45   Failure.Type failure_type = 10;
46   SetupFailure setup_failure = 11;
47   string associated_e2t_instance_address = 12;
48   bool setup_from_network = 13;
49   uint64 status_update_time_stamp = 14;
50   string gnb_node_type = 15;
51   string cu_up_id = 16;
52   string du_id = 17;
53 }
54
55 enum E2ApplicationProtocol {
56   UNKNOWN_E2_APPLICATION_PROTOCOL = 0;
57   X2_SETUP_REQUEST = 1;
58   ENDC_X2_SETUP_REQUEST = 2;
59 }
60
61
62 message Node {
63   enum Type {
64     UNKNOWN = 0;
65     ENB = 1;
66     GNB = 2;
67   }
68 }
69
70 message Failure {
71   enum Type {
72     UNKNOWN_TYPE = 0;
73     X2_SETUP_FAILURE = 1;
74     ENDC_X2_SETUP_FAILURE = 2;
75   }
76 }