blob: 55807846f058faf16533ca0693fca561ac08cfa3 [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
Matteo Scandolo1403e742020-04-06 11:38:40 -070025 // the adapter ID has to be unique,
26 // it will be generated as Type + CurrentReplica
Zack Williams52209662019-02-07 10:15:31 -070027 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;
Matteo Scandolo1403e742020-04-06 11:38:40 -070045 // all replicas of the same adapter will have the same type
46 // it is used to associate a device to an adapter
47 string type = 9;
48
Zack Williams52209662019-02-07 10:15:31 -070049}
50
51message Adapters {
52 repeated Adapter items = 1;
53}