blob: 6cb23465e2aa8462a316ba484736e78543667411 [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001syntax = "proto3";
2
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03003option go_package = "github.com/opencord/voltha-protos/v3/go/voltha";
4option java_package = "org.opencord.voltha";
5option java_outer_classname = "VolthaAdapter";
Zack Williams52209662019-02-07 10:15:31 -07006
7package voltha;
8
9import "google/protobuf/any.proto";
10import "voltha_protos/common.proto";
11import "voltha_protos/meta.proto";
Kent Hagerman801796c2019-12-16 15:07:50 -050012import "google/protobuf/timestamp.proto";
Zack Williams52209662019-02-07 10:15:31 -070013
14
15message AdapterConfig {
16
17 // Common adapter config attributes here
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030018 common.LogLevel.Types log_level = 1;
19
Zack Williams52209662019-02-07 10:15:31 -070020
21 // Custom (vendor-specific) configuration attributes
22 google.protobuf.Any additional_config = 64;
23
24}
25
26// Adapter (software plugin)
27message Adapter {
28
William Kurkian6ea97f82019-03-13 15:51:55 -040029 // Unique name of adapter, matching the python package name under
Zack Williams52209662019-02-07 10:15:31 -070030 // 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 Hagerman801796c2019-12-16 15:07:50 -050043 // timestamp when the adapter last sent a message to the core
44 google.protobuf.Timestamp last_communication = 5;
Zack Williams52209662019-02-07 10:15:31 -070045}
46
47message Adapters {
48 repeated Adapter items = 1;
49}