blob: 25700f983168043970a90e56f5d8fd249c1ee8a6 [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001syntax = "proto3";
2
Matteo Scandolob3c08ae2020-10-14 13:15:43 -07003option go_package = "github.com/opencord/voltha-protos/v4/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
9// Convey a resource identifier
10message ID {
11 string id = 1;
12}
13
14// Represents a list of IDs
15message IDs {
16 repeated ID items = 1;
17}
18
19enum TestModeKeys {
20 api_test=0;
21}
22
Zack Williams52209662019-02-07 10:15:31 -070023message AdminState {
Zack Williams52209662019-02-07 10:15:31 -070024 // Administrative State
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030025 enum Types {
Zack Williams52209662019-02-07 10:15:31 -070026
27 // The administrative state of the device is unknown
28 UNKNOWN = 0;
29
30 // The device is pre-provisioned into Voltha, but not contacted by it
31 PREPROVISIONED = 1;
32
33 // The device is enabled for activation and operation
34 ENABLED = 2;
35
36 // The device is disabled and shall not perform its intended forwarding
37 // functions other than being available for re-activation.
38 DISABLED = 3;
39
40 // The device is in the state of image download
41 DOWNLOADING_IMAGE = 4;
Zack Williams52209662019-02-07 10:15:31 -070042 }
43}
44
45message OperStatus {
Zack Williams52209662019-02-07 10:15:31 -070046 // Operational Status
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030047 enum Types {
Zack Williams52209662019-02-07 10:15:31 -070048
49 // The status of the device is unknown at this point
50 UNKNOWN = 0;
51
52 // The device has been discovered, but not yet activated
53 DISCOVERED = 1;
54
55 // The device is being activated (booted, rebooted, upgraded, etc.)
56 ACTIVATING = 2;
57
58 // Service impacting tests are being conducted
59 TESTING = 3;
60
61 // The device is up and active
62 ACTIVE = 4;
63
64 // The device has failed and cannot fulfill its intended role
65 FAILED = 5;
66 }
67}
68
69message ConnectStatus {
Zack Williams52209662019-02-07 10:15:31 -070070 // Connectivity Status
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030071 enum Types {
Zack Williams52209662019-02-07 10:15:31 -070072
73 // The device connectivity status is unknown
74 UNKNOWN = 0;
75
76 // The device cannot be reached by Voltha
77 UNREACHABLE = 1;
78
79 // There is live communication between device and Voltha
80 REACHABLE = 2;
81 }
82}
83
84message OperationResp {
Zack Williams52209662019-02-07 10:15:31 -070085 enum OperationReturnCode {
86 OPERATION_SUCCESS = 0;
87 OPERATION_FAILURE = 1;
88 OPERATION_UNSUPPORTED = 2;
Maninder2f9d63e2021-02-08 11:42:19 +053089 OPERATION_IN_PROGRESS = 3;
Zack Williams52209662019-02-07 10:15:31 -070090 }
91 // Return code
92 OperationReturnCode code = 1;
93
94 // Additional Info
95 string additional_info = 2;
divyadesaid11cf312020-02-26 12:23:31 +000096}
Dinesh Belwalkared6da5e2020-02-25 11:23:57 -080097message ValueType {
98 enum Type {
99 EMPTY = 0;
100 DISTANCE = 1;
101 }
102}
103message ValueSpecifier {
104 string id = 1;
105 ValueType.Type value = 2;
106}
107
108message ReturnValues {
109 uint32 Set = 1; // Specifies what values are
110 // set/valid in return
111
112 uint32 Unsupported = 2; // Specifies requested values not
113 // supported by the device
114
115 uint32 Error = 3; // Specifies requested values not
116 // fetched because of error
117
118 uint32 Distance = 4; // Value of distance Set includes
119 // DISTANCE
120
121}