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"; |
| 12 | |
| 13 | |
| 14 | message AdapterConfig { |
| 15 | |
| 16 | // Common adapter config attributes here |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame^] | 17 | common.LogLevel.Types log_level = 1; |
| 18 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 19 | |
| 20 | // Custom (vendor-specific) configuration attributes |
| 21 | google.protobuf.Any additional_config = 64; |
| 22 | |
| 23 | } |
| 24 | |
| 25 | // Adapter (software plugin) |
| 26 | message Adapter { |
| 27 | |
William Kurkian | 6ea97f8 | 2019-03-13 15:51:55 -0400 | [diff] [blame] | 28 | // Unique name of adapter, matching the python package name under |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 29 | // voltha/adapters. |
| 30 | string id = 1 [(access) = READ_ONLY]; |
| 31 | string vendor = 2 [(access) = READ_ONLY]; |
| 32 | string version = 3 [(access) = READ_ONLY]; |
| 33 | |
| 34 | // Adapter configuration |
| 35 | AdapterConfig config = 16; |
| 36 | |
| 37 | // Custom descriptors and custom configuration |
| 38 | google.protobuf.Any additional_description = 64 [(access) = READ_ONLY]; |
| 39 | |
| 40 | repeated string logical_device_ids = 4; // Logical devices "owned" |
| 41 | |
| 42 | } |
| 43 | |
| 44 | message Adapters { |
| 45 | repeated Adapter items = 1; |
| 46 | } |