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/voltha"; |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 4 | option java_package = "org.opencord.voltha.adapter"; |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 5 | option java_outer_classname = "VolthaAdapter"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 6 | |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 7 | package adapter; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 8 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 9 | import "google/protobuf/any.proto"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 10 | |
| 11 | message AdapterConfig { |
| 12 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 13 | // Custom (vendor-specific) configuration attributes |
| 14 | google.protobuf.Any additional_config = 64; |
| 15 | |
| 16 | } |
| 17 | |
| 18 | // Adapter (software plugin) |
| 19 | message Adapter { |
| 20 | |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 21 | // the adapter ID has to be unique, |
| 22 | // it will be generated as Type + CurrentReplica |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 23 | string id = 1; |
| 24 | string vendor = 2; |
| 25 | string version = 3; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 26 | |
| 27 | // Adapter configuration |
| 28 | AdapterConfig config = 16; |
| 29 | |
| 30 | // Custom descriptors and custom configuration |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 31 | google.protobuf.Any additional_description = 64; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 32 | |
| 33 | repeated string logical_device_ids = 4; // Logical devices "owned" |
| 34 | |
Kent Hagerman | 801796c | 2019-12-16 15:07:50 -0500 | [diff] [blame] | 35 | // timestamp when the adapter last sent a message to the core |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 36 | int64 last_communication = 5; |
Matteo Scandolo | ae3f418 | 2020-03-30 13:09:09 -0700 | [diff] [blame] | 37 | |
| 38 | int32 currentReplica = 6; |
| 39 | int32 totalReplicas = 7; |
| 40 | string endpoint = 8; |
Matteo Scandolo | 1403e74 | 2020-04-06 11:38:40 -0700 | [diff] [blame] | 41 | // all replicas of the same adapter will have the same type |
| 42 | // it is used to associate a device to an adapter |
| 43 | string type = 9; |
| 44 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | message Adapters { |
| 48 | repeated Adapter items = 1; |
| 49 | } |