blob: ce165ae911463099a4f21aa3ae799bbb9eb11030 [file] [log] [blame]
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -08001syntax = "proto3";
2
Stephane Barbarie35595062018-02-08 08:34:39 -05003option go_package = "github.com/opencord/voltha/protos/go/common";
4
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -08005package voltha;
6
Khen Nursimulu7626ce12016-12-21 11:51:46 -05007import "yang_options.proto";
8
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -08009// Convey a resource identifier
10message ID {
11 string id = 1;
12}
13
Zsolt Haraszti66862032016-11-28 14:28:39 -080014message LogLevel {
Khen Nursimulu7626ce12016-12-21 11:51:46 -050015 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
Zsolt Haraszti66862032016-11-28 14:28:39 -080016
17 // Logging verbosity level
18 enum LogLevel {
19 DEBUG = 0;
20 INFO = 1;
21 WARNING = 2;
22 ERROR = 3;
23 CRITICAL = 4;
24 }
25}
26
27message AdminState {
Khen Nursimulu7626ce12016-12-21 11:51:46 -050028 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
Zsolt Haraszti66862032016-11-28 14:28:39 -080029
30 // Administrative State
31 enum AdminState {
32
33 // The administrative state of the device is unknown
34 UNKNOWN = 0;
35
36 // The device is pre-provisioned into Voltha, but not contacted by it
37 PREPROVISIONED = 1;
38
39 // The device is enabled for activation and operation
40 ENABLED = 3;
41
42 // The device is disabled and shall not perform its intended forwarding
43 // functions other than being available for re-activation.
44 DISABLED = 2;
Lydia Fang01f2e852017-06-28 17:24:58 -070045
46 // The deive is in the state of image download
47 DOWNLOADING_IMAGE = 4;
48
Zsolt Haraszti66862032016-11-28 14:28:39 -080049 }
50}
51
52message OperStatus {
Khen Nursimulu7626ce12016-12-21 11:51:46 -050053 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
Zsolt Haraszti66862032016-11-28 14:28:39 -080054
55 // Operational Status
56 enum OperStatus {
57
58 // The status of the device is unknown at this point
59 UNKNOWN = 0;
60
61 // The device has been discovered, but not yet activated
62 DISCOVERED = 1;
63
64 // The device is being activated (booted, rebooted, upgraded, etc.)
65 ACTIVATING = 2;
66
67 // Service impacting tests are being conducted
68 TESTING = 3;
69
70 // The device is up and active
71 ACTIVE = 4;
72
73 // The device has failed and cannot fulfill its intended role
74 FAILED = 5;
75 }
76}
77
78message ConnectStatus {
Khen Nursimulu7626ce12016-12-21 11:51:46 -050079 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
Zsolt Haraszti66862032016-11-28 14:28:39 -080080
81 // Connectivity Status
82 enum ConnectStatus {
83
84 // The device connectivity status is unknown
85 UNKNOWN = 0;
86
87 // The device cannot be reached by Voltha
88 UNREACHABLE = 1;
89
90 // There is live communication between device and Voltha
91 REACHABLE = 2;
92 }
Zsolt Harasztidafefe12016-11-14 21:29:58 -080093}
Lydia Fang01f2e852017-06-28 17:24:58 -070094
95message OperationResp {
96 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
97
98 enum OperationReturnCode {
99 OPERATION_SUCCESS = 0;
100 OPERATION_FAILURE = 1;
101 OPERATION_UNSUPPORTED = 2;
102 }
103 // Return code
104 OperationReturnCode code = 1;
105
106 // Additional Info
107 string additional_info = 2;
108}