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