blob: 0123418f0cbd52c168dddc4a0e17d9981e94e79f [file] [log] [blame]
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -08001syntax = "proto3";
2
Stephane Barbarie35595062018-02-08 08:34:39 -05003option go_package = "github.com/opencord/voltha/protos/go/voltha";
4
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -08005package voltha;
6
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -08007import "google/protobuf/any.proto";
8import "common.proto";
Zsolt Harasztidafefe12016-11-14 21:29:58 -08009import "meta.proto";
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080010
11
12message AdapterConfig {
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080013
Zsolt Harasztidafefe12016-11-14 21:29:58 -080014 // Common adapter config attributes here
Zsolt Haraszti66862032016-11-28 14:28:39 -080015 LogLevel.LogLevel log_level = 1;
Zsolt Harasztidafefe12016-11-14 21:29:58 -080016
17 // Custom (vendor-specific) configuration attributes
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080018 google.protobuf.Any additional_config = 64;
19
20}
21
22// Adapter (software plugin)
23message Adapter {
24
25 // Unique name of adapter, matching the python packate name under
26 // voltha/adapters.
Zsolt Harasztidafefe12016-11-14 21:29:58 -080027 string id = 1 [(access) = READ_ONLY];
28 string vendor = 2 [(access) = READ_ONLY];
29 string version = 3 [(access) = READ_ONLY];
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080030
31 // Adapter configuration
32 AdapterConfig config = 16;
33
34 // Custom descriptors and custom configuration
Zsolt Harasztidafefe12016-11-14 21:29:58 -080035 google.protobuf.Any additional_description = 64 [(access) = READ_ONLY];
36
37 repeated string logical_device_ids = 4; // Logical devices "owned"
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080038
39}
40
41message Adapters {
42 repeated Adapter items = 1;
43}