Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package voltha; |
| 4 | |
| 5 | // Convey a resource identifier |
| 6 | message ID { |
| 7 | string id = 1; |
| 8 | } |
| 9 | |
| 10 | message LogLevel { |
| 11 | |
| 12 | // Logging verbosity level |
| 13 | enum LogLevel { |
| 14 | DEBUG = 0; |
| 15 | INFO = 1; |
| 16 | WARNING = 2; |
| 17 | ERROR = 3; |
| 18 | CRITICAL = 4; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | message AdminState { |
| 23 | |
| 24 | // Administrative State |
| 25 | enum AdminState { |
| 26 | |
| 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 = 3; |
| 35 | |
| 36 | // The device is disabled and shall not perform its intended forwarding |
| 37 | // functions other than being available for re-activation. |
| 38 | DISABLED = 2; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | message OperStatus { |
| 43 | |
| 44 | // Operational Status |
| 45 | enum OperStatus { |
| 46 | |
| 47 | // The status of the device is unknown at this point |
| 48 | UNKNOWN = 0; |
| 49 | |
| 50 | // The device has been discovered, but not yet activated |
| 51 | DISCOVERED = 1; |
| 52 | |
| 53 | // The device is being activated (booted, rebooted, upgraded, etc.) |
| 54 | ACTIVATING = 2; |
| 55 | |
| 56 | // Service impacting tests are being conducted |
| 57 | TESTING = 3; |
| 58 | |
| 59 | // The device is up and active |
| 60 | ACTIVE = 4; |
| 61 | |
| 62 | // The device has failed and cannot fulfill its intended role |
| 63 | FAILED = 5; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | message ConnectStatus { |
| 68 | |
| 69 | // Connectivity Status |
| 70 | enum ConnectStatus { |
| 71 | |
| 72 | // The device connectivity status is unknown |
| 73 | UNKNOWN = 0; |
| 74 | |
| 75 | // The device cannot be reached by Voltha |
| 76 | UNREACHABLE = 1; |
| 77 | |
| 78 | // There is live communication between device and Voltha |
| 79 | REACHABLE = 2; |
| 80 | } |
| 81 | } |