blob: d2fe18b3579dd7f03fa70bf4b4183df6ce63c7a9 [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001syntax = "proto3";
2
khenaidoo5fc5cea2021-08-11 17:39:16 -04003option go_package = "github.com/opencord/voltha-protos/v5/go/common";
Zack Williams52209662019-02-07 10:15:31 -07004
William Kurkian12fc0af2019-04-18 14:27:45 -04005package common;
Zack Williams52209662019-02-07 10:15:31 -07006
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03007option java_package = "org.opencord.voltha";
Zack Williams52209662019-02-07 10:15:31 -07008
yasin sapli2bbfbb42021-11-01 14:30:10 +00009// Full path for KV store
10message Key {
11 string key = 1;
12}
13
Zack Williams52209662019-02-07 10:15:31 -070014// Convey a resource identifier
15message ID {
16 string id = 1;
17}
18
19// Represents a list of IDs
20message IDs {
21 repeated ID items = 1;
22}
23
24enum TestModeKeys {
25 api_test=0;
26}
27
khenaidoo5cb0d402021-12-08 14:09:16 -050028message Connection {
29 // endpoint is the endpoint sending the request
30 string endpoint = 1;
31
32 // contextInfo represents additional contextual information
33 string contextInfo = 2;
34
35 // keep_alive_interval is used to indicate to the remote endpoint how often it
36 // will get a keep alive notification
37 int64 keep_alive_interval = 3;
38}
39
Zack Williams52209662019-02-07 10:15:31 -070040message AdminState {
Zack Williams52209662019-02-07 10:15:31 -070041 // Administrative State
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030042 enum Types {
Zack Williams52209662019-02-07 10:15:31 -070043
44 // The administrative state of the device is unknown
45 UNKNOWN = 0;
46
47 // The device is pre-provisioned into Voltha, but not contacted by it
48 PREPROVISIONED = 1;
49
50 // The device is enabled for activation and operation
51 ENABLED = 2;
52
53 // The device is disabled and shall not perform its intended forwarding
54 // functions other than being available for re-activation.
55 DISABLED = 3;
56
57 // The device is in the state of image download
58 DOWNLOADING_IMAGE = 4;
Zack Williams52209662019-02-07 10:15:31 -070059 }
60}
61
62message OperStatus {
Zack Williams52209662019-02-07 10:15:31 -070063 // Operational Status
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030064 enum Types {
Zack Williams52209662019-02-07 10:15:31 -070065
66 // The status of the device is unknown at this point
67 UNKNOWN = 0;
68
69 // The device has been discovered, but not yet activated
70 DISCOVERED = 1;
71
72 // The device is being activated (booted, rebooted, upgraded, etc.)
73 ACTIVATING = 2;
74
75 // Service impacting tests are being conducted
76 TESTING = 3;
77
78 // The device is up and active
79 ACTIVE = 4;
80
81 // The device has failed and cannot fulfill its intended role
82 FAILED = 5;
Maninder4ed97f52021-03-15 10:14:55 +053083
84 // The device is reconciling
85 RECONCILING = 6;
Manindera4b9e552021-06-16 17:33:04 +053086
87 // The device is in reconciling failed
88 RECONCILING_FAILED = 7;
Abhilash Laxmeshwar540a0b92022-06-13 11:24:06 +053089
90 // The device has rebooted
91 REBOOTED = 8;
Zack Williams52209662019-02-07 10:15:31 -070092 }
93}
94
95message ConnectStatus {
Zack Williams52209662019-02-07 10:15:31 -070096 // Connectivity Status
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030097 enum Types {
Zack Williams52209662019-02-07 10:15:31 -070098
99 // The device connectivity status is unknown
100 UNKNOWN = 0;
101
102 // The device cannot be reached by Voltha
103 UNREACHABLE = 1;
104
105 // There is live communication between device and Voltha
106 REACHABLE = 2;
107 }
108}
109
110message OperationResp {
Zack Williams52209662019-02-07 10:15:31 -0700111 enum OperationReturnCode {
112 OPERATION_SUCCESS = 0;
113 OPERATION_FAILURE = 1;
114 OPERATION_UNSUPPORTED = 2;
Maninder2f9d63e2021-02-08 11:42:19 +0530115 OPERATION_IN_PROGRESS = 3;
Zack Williams52209662019-02-07 10:15:31 -0700116 }
117 // Return code
118 OperationReturnCode code = 1;
119
120 // Additional Info
121 string additional_info = 2;
divyadesaid11cf312020-02-26 12:23:31 +0000122}
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -0800123
Akash Kankanala761955c2024-02-21 19:32:20 +0530124message PortStatistics {
125 fixed32 intf_id = 1;
126 fixed64 rx_bytes = 2;
127 fixed64 rx_packets = 3;
128 fixed64 rx_ucast_packets = 4;
129 fixed64 rx_mcast_packets = 5;
130 fixed64 rx_bcast_packets = 6;
131 fixed64 rx_error_packets = 7;
132 fixed64 rx_frames = 17;
133 fixed64 rx_frames_64 = 18;
134 fixed64 rx_frames_65_127 = 19;
135 fixed64 rx_frames_128_255 = 20;
136 fixed64 rx_frames_256_511 = 21;
137 fixed64 rx_frames_512_1023 = 22;
138 fixed64 rx_frames_1024_1518 = 23;
139 fixed64 rx_frames_1519_2047 = 24;
140 fixed64 rx_frames_2048_4095 = 25;
141 fixed64 rx_frames_4096_9216 = 26;
142 fixed64 rx_frames_9217_16383 = 27;
143 fixed64 rx_crc_errors = 14;
144 fixed64 rxUndersizePackets = 39;
145 fixed64 rxOversizePackets = 40;
146 fixed64 rxGem = 43;
147 fixed64 rxGemDropped = 44;
148 fixed64 rxGemIdle = 45;
149 fixed64 rxGemCorrected = 46;
150 fixed64 rxGemIllegal = 47;
151 fixed64 rxFragmentError = 48;
152 fixed64 rxPacketsDropped = 49;
153 fixed64 rxCpuOmciPacketsDropped = 50;
154 fixed64 rxCpu = 51;
155 fixed64 rxOmci = 52;
156 fixed64 rxOmciPacketsCrcError = 53;
157 fixed64 rxFcsErrorPackets = 62;
158
159 fixed64 tx_bytes = 8;
160 fixed64 tx_packets = 9;
161 fixed64 tx_ucast_packets = 10;
162 fixed64 tx_mcast_packets = 11;
163 fixed64 tx_bcast_packets = 12;
164 fixed64 tx_error_packets = 13;
165 fixed64 tx_frames = 28;
166 fixed64 tx_frames_64 = 29;
167 fixed64 tx_frames_65_127 = 30;
168 fixed64 tx_frames_128_255 = 31;
169 fixed64 tx_frames_256_511 = 32;
170 fixed64 tx_frames_512_1023 = 33;
171 fixed64 tx_frames_1024_1518 = 34;
172 fixed64 tx_frames_1519_2047 = 35;
173 fixed64 tx_frames_2048_4095 = 36;
174 fixed64 tx_frames_4096_9216 = 37;
175 fixed64 tx_frames_9217_16383 = 38;
176 fixed64 txUndersizePackets = 41;
177 fixed64 txOversizePackets = 42;
178 fixed64 txGem = 54;
179 fixed64 txCpu = 55;
180 fixed64 txOmci = 56;
181 fixed64 txDroppedIllegalLength = 57;
182 fixed64 txDroppedTpidMiss = 58;
183 fixed64 txDroppedVidMiss = 59;
184 fixed64 txDroppedTotal = 60;
185
186 fixed64 bip_errors = 15;
187 fixed64 bip_units = 61;
188 fixed32 timestamp = 16;
189}