Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 3 | option go_package = "github.com/opencord/voltha-protos/v5/go/common"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 4 | |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 5 | package common; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 6 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 7 | option java_package = "org.opencord.voltha"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 8 | |
| 9 | // Convey a resource identifier |
| 10 | message ID { |
| 11 | string id = 1; |
| 12 | } |
| 13 | |
| 14 | // Represents a list of IDs |
| 15 | message IDs { |
| 16 | repeated ID items = 1; |
| 17 | } |
| 18 | |
| 19 | enum TestModeKeys { |
| 20 | api_test=0; |
| 21 | } |
| 22 | |
khenaidoo | 5cb0d40 | 2021-12-08 14:09:16 -0500 | [diff] [blame] | 23 | message Connection { |
| 24 | // endpoint is the endpoint sending the request |
| 25 | string endpoint = 1; |
| 26 | |
| 27 | // contextInfo represents additional contextual information |
| 28 | string contextInfo = 2; |
| 29 | |
| 30 | // keep_alive_interval is used to indicate to the remote endpoint how often it |
| 31 | // will get a keep alive notification |
| 32 | int64 keep_alive_interval = 3; |
| 33 | } |
| 34 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 35 | message AdminState { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 36 | // Administrative State |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 37 | enum Types { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 38 | |
| 39 | // The administrative state of the device is unknown |
| 40 | UNKNOWN = 0; |
| 41 | |
| 42 | // The device is pre-provisioned into Voltha, but not contacted by it |
| 43 | PREPROVISIONED = 1; |
| 44 | |
| 45 | // The device is enabled for activation and operation |
| 46 | ENABLED = 2; |
| 47 | |
| 48 | // The device is disabled and shall not perform its intended forwarding |
| 49 | // functions other than being available for re-activation. |
| 50 | DISABLED = 3; |
| 51 | |
| 52 | // The device is in the state of image download |
| 53 | DOWNLOADING_IMAGE = 4; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 54 | } |
| 55 | } |
| 56 | |
| 57 | message OperStatus { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 58 | // Operational Status |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 59 | enum Types { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 60 | |
| 61 | // The status of the device is unknown at this point |
| 62 | UNKNOWN = 0; |
| 63 | |
| 64 | // The device has been discovered, but not yet activated |
| 65 | DISCOVERED = 1; |
| 66 | |
| 67 | // The device is being activated (booted, rebooted, upgraded, etc.) |
| 68 | ACTIVATING = 2; |
| 69 | |
| 70 | // Service impacting tests are being conducted |
| 71 | TESTING = 3; |
| 72 | |
| 73 | // The device is up and active |
| 74 | ACTIVE = 4; |
| 75 | |
| 76 | // The device has failed and cannot fulfill its intended role |
| 77 | FAILED = 5; |
Maninder | 4ed97f5 | 2021-03-15 10:14:55 +0530 | [diff] [blame] | 78 | |
| 79 | // The device is reconciling |
| 80 | RECONCILING = 6; |
Maninder | a4b9e55 | 2021-06-16 17:33:04 +0530 | [diff] [blame] | 81 | |
| 82 | // The device is in reconciling failed |
| 83 | RECONCILING_FAILED = 7; |
Abhilash Laxmeshwar | 540a0b9 | 2022-06-13 11:24:06 +0530 | [diff] [blame] | 84 | |
| 85 | // The device has rebooted |
| 86 | REBOOTED = 8; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 87 | } |
| 88 | } |
| 89 | |
| 90 | message ConnectStatus { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 91 | // Connectivity Status |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 92 | enum Types { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 93 | |
| 94 | // The device connectivity status is unknown |
| 95 | UNKNOWN = 0; |
| 96 | |
| 97 | // The device cannot be reached by Voltha |
| 98 | UNREACHABLE = 1; |
| 99 | |
| 100 | // There is live communication between device and Voltha |
| 101 | REACHABLE = 2; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | message OperationResp { |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 106 | enum OperationReturnCode { |
| 107 | OPERATION_SUCCESS = 0; |
| 108 | OPERATION_FAILURE = 1; |
| 109 | OPERATION_UNSUPPORTED = 2; |
Maninder | 2f9d63e | 2021-02-08 11:42:19 +0530 | [diff] [blame] | 110 | OPERATION_IN_PROGRESS = 3; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 111 | } |
| 112 | // Return code |
| 113 | OperationReturnCode code = 1; |
| 114 | |
| 115 | // Additional Info |
| 116 | string additional_info = 2; |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 117 | } |
Dinesh Belwalkar | ed6da5e | 2020-02-25 11:23:57 -0800 | [diff] [blame] | 118 | |