a6f2ab1667fa989fde3aa589087ffd76c6145d06
[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 syntax = "proto3";
19 package entities;
20 import "gnb.proto";
21 import "enb.proto";
22 import "x2_setup_failure_response.proto";
23 import "nb_identity.proto";
24
25 message NodebInfo {
26     string ran_name = 1;
27     string ip = 2;
28     uint32 port = 3;
29     E2ApplicationProtocol e2_application_protocol = 4;
30     ConnectionStatus connection_status = 5;
31     uint32 connection_attempts = 6;
32     GlobalNbId global_nb_id = 7;
33     Node.Type node_type = 8;
34     oneof configuration {
35         Enb enb = 9;
36         Gnb gnb = 10;
37     }
38     Failure.Type failure_type = 11;
39     SetupFailure setup_failure = 12;
40     string associated_e2t_instance_address = 13;
41 }
42
43 enum E2ApplicationProtocol {
44     UNKNOWN_E2_APPLICATION_PROTOCOL = 0;
45     X2_SETUP_REQUEST = 1;
46     ENDC_X2_SETUP_REQUEST = 2;
47 }
48
49 enum ConnectionStatus {
50     UNKNOWN_CONNECTION_STATUS = 0;
51     CONNECTED = 1;
52     DISCONNECTED = 2;
53     CONNECTED_SETUP_FAILED = 3;
54     CONNECTING = 4;
55     SHUTTING_DOWN = 5;
56     SHUT_DOWN = 6;
57 }
58
59 message Node {
60     enum Type {
61         UNKNOWN = 0;
62         ENB = 1;
63         GNB = 2;
64     }
65 }
66
67 message Failure {
68     enum Type {
69         UNKNOWN_TYPE = 0;
70         X2_SETUP_FAILURE = 1;
71         ENDC_X2_SETUP_FAILURE = 2;
72     }
73 }