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