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