blob: 0ec8ce3d72a2c10398973ba14e97fc67a832f1d7 [file] [log] [blame]
Khen Nursimuluaaac7ee2016-12-11 22:03:52 -05001syntax = "proto3";
2
3package voltha;
4
5// Convey a resource identifier
6message ID {
7 string id = 1;
8}
9
10
11// Logging verbosity level
12enum LogLevel {
13 DEBUG = 0;
14 INFO = 1;
15 WARNING = 2;
16 ERROR = 3;
17 CRITICAL = 4;
18}
19
20// Administrative State
21enum AdminState {
22
23 // The administrative state of the device is unknown
24 AS_UNKNOWN = 0;
25
26 // The device is pre-provisioned into Voltha, but not contacted by it
27 AS_PREPROVISIONED = 1;
28
29 // The device is enabled for activation and operation
30 AS_ENABLED = 3;
31
32 // The device is disabled and shall not perform its intended forwarding
33 // functions other than being available for re-activation.
34 AS_DISABLED = 2;
35}
36
37// Operational Status
38enum OperStatus {
39
40 // The status of the device is unknown at this point
41 OS_UNKNOWN = 0;
42
43 // The device has been discovered, but not yet activated
44 OS_DISCOVERED = 1;
45
46 // The device is being activated (booted, rebooted, upgraded, etc.)
47 OS_ACTIVATING = 2;
48
49 // Service impacting tests are being conducted
50 OS_TESTING = 3;
51
52 // The device is up and active
53 OS_ACTIVE = 4;
54
55 // The device has failed and cannot fulfill its intended role
56 OS_FAILED = 5;
57}
58
59// Connectivity Status
60enum ConnectStatus {
61
62 // The device connectivity status is unknown
63 CS_UNKNOWN = 0;
64
65 // The device cannot be reached by Voltha
66 CS_UNREACHABLE = 1;
67
68 // There is live communication between device and Voltha
69 CS_REACHABLE = 2;
70}
71