blob: c0e83b23194004da4718e1bcaa5f6c1e6173d205 [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
Zack Williams52209662019-02-07 10:15:31 -070017 // Custom (vendor-specific) configuration attributes
18 google.protobuf.Any additional_config = 64;
19
20}
21
22// Adapter (software plugin)
23message Adapter {
24
William Kurkian6ea97f82019-03-13 15:51:55 -040025 // Unique name of adapter, matching the python package name under
Zack Williams52209662019-02-07 10:15:31 -070026 // 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
Kent Hagerman801796c2019-12-16 15:07:50 -050039 // timestamp when the adapter last sent a message to the core
40 google.protobuf.Timestamp last_communication = 5;
Matteo Scandoloae3f4182020-03-30 13:09:09 -070041
42 int32 currentReplica = 6;
43 int32 totalReplicas = 7;
44 string endpoint = 8;
Zack Williams52209662019-02-07 10:15:31 -070045}
46
47message Adapters {
48 repeated Adapter items = 1;
49}