blob: d44611f1cd28ef73826e92171b0303a17360fa4e [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