blob: 175d8a92b334cb588922eeeffa389448b8d4e3e0 [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";
Zack Williams52209662019-02-07 10:15:31 -070010import "voltha_protos/meta.proto";
Kent Hagerman801796c2019-12-16 15:07:50 -050011import "google/protobuf/timestamp.proto";
Zack Williams52209662019-02-07 10:15:31 -070012
13
14message AdapterConfig {
15
Zack Williams52209662019-02-07 10:15:31 -070016 // Custom (vendor-specific) configuration attributes
17 google.protobuf.Any additional_config = 64;
18
19}
20
21// Adapter (software plugin)
22message Adapter {
23
Matteo Scandolo1403e742020-04-06 11:38:40 -070024 // the adapter ID has to be unique,
25 // it will be generated as Type + CurrentReplica
Zack Williams52209662019-02-07 10:15:31 -070026 string id = 1 [(access) = READ_ONLY];
27 string vendor = 2 [(access) = READ_ONLY];
28 string version = 3 [(access) = READ_ONLY];
29
30 // Adapter configuration
31 AdapterConfig config = 16;
32
33 // Custom descriptors and custom configuration
34 google.protobuf.Any additional_description = 64 [(access) = READ_ONLY];
35
36 repeated string logical_device_ids = 4; // Logical devices "owned"
37
Kent Hagerman801796c2019-12-16 15:07:50 -050038 // timestamp when the adapter last sent a message to the core
39 google.protobuf.Timestamp last_communication = 5;
Matteo Scandoloae3f4182020-03-30 13:09:09 -070040
41 int32 currentReplica = 6;
42 int32 totalReplicas = 7;
43 string endpoint = 8;
Matteo Scandolo1403e742020-04-06 11:38:40 -070044 // all replicas of the same adapter will have the same type
45 // it is used to associate a device to an adapter
46 string type = 9;
47
Zack Williams52209662019-02-07 10:15:31 -070048}
49
50message Adapters {
51 repeated Adapter items = 1;
52}