Khen Nursimulu | aaac7ee | 2016-12-11 22:03:52 -0500 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | package voltha; |
| 4 | |
| 5 | import "google/protobuf/any.proto"; |
| 6 | import "common.proto"; |
| 7 | import "meta.proto"; |
| 8 | |
| 9 | |
| 10 | message AdapterConfig { |
| 11 | |
| 12 | // Common adapter config attributes here |
| 13 | LogLevel.LogLevel log_level = 1; |
| 14 | |
| 15 | // Custom (vendor-specific) configuration attributes |
| 16 | google.protobuf.Any additional_config = 64; |
| 17 | |
| 18 | } |
| 19 | |
| 20 | // Adapter (software plugin) |
| 21 | message Adapter { |
| 22 | |
| 23 | // Unique name of adapter, matching the python packate name under |
| 24 | // voltha/adapters. |
| 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 | |
| 37 | } |
| 38 | |
| 39 | message Adapters { |
| 40 | repeated Adapter items = 1; |
| 41 | } |