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