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