blob: 914e480fb98f8ac4e063262479ecc7406f434eb5 [file] [log] [blame]
Chip Bolingc7d3e2d2018-04-06 10:16:29 -05001//
2// Copyright 2018 - present the original author or authors.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16syntax = "proto3";
17
Stephane Barbariec92b9e22018-04-17 10:11:19 -040018option go_package = "github.com/opencord/voltha/protos/go/omci";
Chip Bolingc7d3e2d2018-04-06 10:16:29 -050019
20package omci;
21
22import "meta.proto";
23
24
25message MibAttributeData {
26 string name = 1 [(voltha.access) = READ_ONLY];
27 string value = 2;
28}
29
30message MibInstanceData {
31 uint32 instance_id = 1 [(voltha.access) = READ_ONLY];
32 string created = 2;
33 string modified = 3;
34
35 repeated MibAttributeData attributes = 4
36 [(voltha.child_node) = {key: "name"}];
37}
38
39message MibClassData {
40 uint32 class_id = 1 [(voltha.access) = READ_ONLY];
41
42 repeated MibInstanceData instances= 2
43 [(voltha.child_node) = {key: "instance_id"}];
44}
45
Chip Boling69abce82018-06-18 09:56:23 -050046message ManagedEntity {
47 uint32 class_id = 1 [(voltha.access) = READ_ONLY];
48 string name = 2 [(voltha.access) = READ_ONLY];
49}
50
51message MessageType {
52 uint32 message_type = 1 [(voltha.access) = READ_ONLY];
53}
54
Chip Bolingc7d3e2d2018-04-06 10:16:29 -050055message MibDeviceData {
56 string device_id = 1 [(voltha.access) = READ_ONLY];
57 string created = 2;
58 string last_sync_time = 3;
59 uint32 mib_data_sync = 4;
60 uint32 version = 5;
61
62 repeated MibClassData classes = 6
63 [(voltha.child_node) = {key: "class_id"}];
Chip Boling69abce82018-06-18 09:56:23 -050064
65 repeated ManagedEntity managed_entities = 7;
66 repeated MessageType message_types = 8;
Chip Bolingc7d3e2d2018-04-06 10:16:29 -050067}
Chip Boling69abce82018-06-18 09:56:23 -050068
Chip Boling8e5e0042018-07-13 14:48:58 -050069message OpenOmciEventType {
70 enum OpenOmciEventType {
71 state_change = 0; // A state machine has transitioned to a new state
72 }
73}
74
75message OpenOmciEvent {
76 OpenOmciEventType.OpenOmciEventType type = 1;
77
78 string data = 2; // associated data, in json format
79}