blob: cb4b9f9c961b7c1023bfb24e177f410ca5ca795f [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";
khenaidoo4c6543e2021-10-19 17:25:58 -04004option java_package = "org.opencord.voltha.adapter";
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +03005option java_outer_classname = "VolthaAdapter";
Zack Williams52209662019-02-07 10:15:31 -07006
khenaidoo4c6543e2021-10-19 17:25:58 -04007package adapter;
Zack Williams52209662019-02-07 10:15:31 -07008
khenaidoo5fc5cea2021-08-11 17:39:16 -04009import "google/protobuf/any.proto";
Zack Williams52209662019-02-07 10:15:31 -070010
11message AdapterConfig {
12
Zack Williams52209662019-02-07 10:15:31 -070013 // Custom (vendor-specific) configuration attributes
14 google.protobuf.Any additional_config = 64;
15
16}
17
18// Adapter (software plugin)
19message Adapter {
20
Matteo Scandolo1403e742020-04-06 11:38:40 -070021 // the adapter ID has to be unique,
22 // it will be generated as Type + CurrentReplica
khenaidoo4c6543e2021-10-19 17:25:58 -040023 string id = 1;
24 string vendor = 2;
25 string version = 3;
Zack Williams52209662019-02-07 10:15:31 -070026
27 // Adapter configuration
28 AdapterConfig config = 16;
29
30 // Custom descriptors and custom configuration
khenaidoo4c6543e2021-10-19 17:25:58 -040031 google.protobuf.Any additional_description = 64;
Zack Williams52209662019-02-07 10:15:31 -070032
33 repeated string logical_device_ids = 4; // Logical devices "owned"
34
Kent Hagerman801796c2019-12-16 15:07:50 -050035 // timestamp when the adapter last sent a message to the core
khenaidoo5fc5cea2021-08-11 17:39:16 -040036 int64 last_communication = 5;
Matteo Scandoloae3f4182020-03-30 13:09:09 -070037
38 int32 currentReplica = 6;
39 int32 totalReplicas = 7;
40 string endpoint = 8;
Matteo Scandolo1403e742020-04-06 11:38:40 -070041 // all replicas of the same adapter will have the same type
42 // it is used to associate a device to an adapter
43 string type = 9;
44
Zack Williams52209662019-02-07 10:15:31 -070045}
46
47message Adapters {
48 repeated Adapter items = 1;
49}