Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 3 | option go_package = "github.com/opencord/voltha-protos/go/voltha"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 4 | |
| 5 | package voltha; |
| 6 | |
| 7 | import "google/protobuf/any.proto"; |
| 8 | import "voltha_protos/common.proto"; |
| 9 | import "voltha_protos/meta.proto"; |
| 10 | |
| 11 | |
| 12 | message AdapterConfig { |
| 13 | |
| 14 | // Common adapter config attributes here |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 15 | common.LogLevel.LogLevel log_level = 1; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 16 | |
| 17 | // Custom (vendor-specific) configuration attributes |
| 18 | google.protobuf.Any additional_config = 64; |
| 19 | |
| 20 | } |
| 21 | |
| 22 | // Adapter (software plugin) |
| 23 | message Adapter { |
| 24 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 25 | // Unique name of adapter, matching the python package name under |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 26 | // voltha/adapters. |
| 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 | |
| 39 | } |
| 40 | |
| 41 | message Adapters { |
| 42 | repeated Adapter items = 1; |
| 43 | } |