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