blob: f5e68c4db8b829e7501d86b295e47255192dd0fe [file] [log] [blame]
David K. Bainbridge24ff0232019-04-30 13:26:19 -07001syntax = "proto3";
2
3option go_package = "github.com/opencord/voltha-protos/go/common";
4
5package common;
6
7import "voltha_protos/yang_options.proto";
8
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
23message LogLevel {
24 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
25
26 // Logging verbosity level
27 enum LogLevel {
28 DEBUG = 0;
29 INFO = 1;
30 WARNING = 2;
31 ERROR = 3;
32 CRITICAL = 4;
33 FATAL = 5;
34 }
35}
36
Scott Baker112b0d42019-08-22 08:32:26 -070037message Logging {
38 common.LogLevel.LogLevel level = 1;
39 string package_name = 2;
40 string component_name = 3;
41}
42
43// For GetLogLevels(), select component to query
44message LoggingComponent {
45 string component_name = 1;
46}
47
48// For returning multiple log levels
49message Loggings {
50 repeated Logging items = 1;
51}
52
David K. Bainbridge24ff0232019-04-30 13:26:19 -070053message AdminState {
54 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
55
56 // Administrative State
57 enum AdminState {
58
59 // The administrative state of the device is unknown
60 UNKNOWN = 0;
61
62 // The device is pre-provisioned into Voltha, but not contacted by it
63 PREPROVISIONED = 1;
64
65 // The device is enabled for activation and operation
66 ENABLED = 2;
67
68 // The device is disabled and shall not perform its intended forwarding
69 // functions other than being available for re-activation.
70 DISABLED = 3;
71
72 // The device is in the state of image download
73 DOWNLOADING_IMAGE = 4;
74
75 // The device is marked to be deleted
76 DELETED = 5;
77 }
78}
79
80message OperStatus {
81 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
82
83 // Operational Status
84 enum OperStatus {
85
86 // The status of the device is unknown at this point
87 UNKNOWN = 0;
88
89 // The device has been discovered, but not yet activated
90 DISCOVERED = 1;
91
92 // The device is being activated (booted, rebooted, upgraded, etc.)
93 ACTIVATING = 2;
94
95 // Service impacting tests are being conducted
96 TESTING = 3;
97
98 // The device is up and active
99 ACTIVE = 4;
100
101 // The device has failed and cannot fulfill its intended role
102 FAILED = 5;
103 }
104}
105
106message ConnectStatus {
107 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
108
109 // Connectivity Status
110 enum ConnectStatus {
111
112 // The device connectivity status is unknown
113 UNKNOWN = 0;
114
115 // The device cannot be reached by Voltha
116 UNREACHABLE = 1;
117
118 // There is live communication between device and Voltha
119 REACHABLE = 2;
120 }
121}
122
123message OperationResp {
124 option (yang_child_rule) = MOVE_TO_PARENT_LEVEL;
125
126 enum OperationReturnCode {
127 OPERATION_SUCCESS = 0;
128 OPERATION_FAILURE = 1;
129 OPERATION_UNSUPPORTED = 2;
130 }
131 // Return code
132 OperationReturnCode code = 1;
133
134 // Additional Info
135 string additional_info = 2;
136}
137
138