blob: 3b13266a152433057bb6b2f81b731c369f8fe53b [file] [log] [blame]
Zack Williams52209662019-02-07 10:15:31 -07001syntax = "proto3";
2
khenaidoo5fc5cea2021-08-11 17:39:16 -04003option go_package = "github.com/opencord/voltha-protos/v5/go/voltha";
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03004option java_package = "org.opencord.voltha";
5option java_outer_classname = "VolthaAdapter";
Zack Williams52209662019-02-07 10:15:31 -07006
7package voltha;
8
Zack Williams52209662019-02-07 10:15:31 -07009
khenaidoo5fc5cea2021-08-11 17:39:16 -040010import "voltha_protos/meta.proto";
11import "google/protobuf/any.proto";
Zack Williams52209662019-02-07 10:15:31 -070012
13message AdapterConfig {
14
Zack Williams52209662019-02-07 10:15:31 -070015 // Custom (vendor-specific) configuration attributes
16 google.protobuf.Any additional_config = 64;
17
18}
19
20// Adapter (software plugin)
21message Adapter {
22
Matteo Scandolo1403e742020-04-06 11:38:40 -070023 // the adapter ID has to be unique,
24 // it will be generated as Type + CurrentReplica
Zack Williams52209662019-02-07 10:15:31 -070025 string id = 1 [(access) = READ_ONLY];
26 string vendor = 2 [(access) = READ_ONLY];
27 string version = 3 [(access) = READ_ONLY];
28
29 // Adapter configuration
30 AdapterConfig config = 16;
31
32 // Custom descriptors and custom configuration
33 google.protobuf.Any additional_description = 64 [(access) = READ_ONLY];
34
35 repeated string logical_device_ids = 4; // Logical devices "owned"
36
Kent Hagerman801796c2019-12-16 15:07:50 -050037 // timestamp when the adapter last sent a message to the core
khenaidoo5fc5cea2021-08-11 17:39:16 -040038 int64 last_communication = 5;
Matteo Scandoloae3f4182020-03-30 13:09:09 -070039
40 int32 currentReplica = 6;
41 int32 totalReplicas = 7;
42 string endpoint = 8;
Matteo Scandolo1403e742020-04-06 11:38:40 -070043 // all replicas of the same adapter will have the same type
44 // it is used to associate a device to an adapter
45 string type = 9;
46
Zack Williams52209662019-02-07 10:15:31 -070047}
48
49message Adapters {
50 repeated Adapter items = 1;
51}