blob: aca0a3686309c72a5827f46a1d13d7c8a27bd37c [file] [log] [blame]
khenaidooabad44c2018-08-03 16:58:35 -04001syntax = "proto3";
2
3option go_package = "github.com/opencord/voltha-go/protos/common";
4
5package voltha;
6
7import "yang_options.proto";
8
9// Convey a resource identifier
10message ID {
11 string id = 1;
12}
13
khenaidoobf6e7bb2018-08-14 22:27:29 -040014enum TestModeKeys {
15 api_test=0;
16}
17
khenaidooabad44c2018-08-03 16:58:35 -040018message LogLevel {
19 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
20
21 // Logging verbosity level
22 enum LogLevel {
23 DEBUG = 0;
24 INFO = 1;
25 WARNING = 2;
26 ERROR = 3;
27 CRITICAL = 4;
khenaidoobf6e7bb2018-08-14 22:27:29 -040028 FATAL = 5;
khenaidooabad44c2018-08-03 16:58:35 -040029 }
30}
31
32message AdminState {
33 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
34
35 // Administrative State
36 enum AdminState {
37
38 // The administrative state of the device is unknown
39 UNKNOWN = 0;
40
41 // The device is pre-provisioned into Voltha, but not contacted by it
42 PREPROVISIONED = 1;
43
44 // The device is enabled for activation and operation
45 ENABLED = 3;
46
47 // The device is disabled and shall not perform its intended forwarding
48 // functions other than being available for re-activation.
49 DISABLED = 2;
50
51 // The deive is in the state of image download
52 DOWNLOADING_IMAGE = 4;
53
54 }
55}
56
57message OperStatus {
58 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
59
60 // Operational Status
61 enum OperStatus {
62
63 // The status of the device is unknown at this point
64 UNKNOWN = 0;
65
66 // The device has been discovered, but not yet activated
67 DISCOVERED = 1;
68
69 // The device is being activated (booted, rebooted, upgraded, etc.)
70 ACTIVATING = 2;
71
72 // Service impacting tests are being conducted
73 TESTING = 3;
74
75 // The device is up and active
76 ACTIVE = 4;
77
78 // The device has failed and cannot fulfill its intended role
79 FAILED = 5;
80 }
81}
82
83message ConnectStatus {
84 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
85
86 // Connectivity Status
87 enum ConnectStatus {
88
89 // The device connectivity status is unknown
90 UNKNOWN = 0;
91
92 // The device cannot be reached by Voltha
93 UNREACHABLE = 1;
94
95 // There is live communication between device and Voltha
96 REACHABLE = 2;
97 }
98}
99
100message OperationResp {
101 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
102
103 enum OperationReturnCode {
104 OPERATION_SUCCESS = 0;
105 OPERATION_FAILURE = 1;
106 OPERATION_UNSUPPORTED = 2;
107 }
108 // Return code
109 OperationReturnCode code = 1;
110
111 // Additional Info
112 string additional_info = 2;
113}
114
115