khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 1 | // |
| 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 | // |
| 16 | syntax = "proto3"; |
| 17 | |
| 18 | option go_package = "github.com/opencord/voltha-go/protos/omci"; |
| 19 | |
| 20 | package omci; |
| 21 | |
| 22 | import "meta.proto"; |
| 23 | |
| 24 | |
| 25 | message MibAttributeData { |
| 26 | string name = 1 [(voltha.access) = READ_ONLY]; |
| 27 | string value = 2; |
| 28 | } |
| 29 | |
| 30 | message 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 | |
| 39 | message 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 | |
| 46 | message MibDeviceData { |
| 47 | string device_id = 1 [(voltha.access) = READ_ONLY]; |
| 48 | string created = 2; |
| 49 | string last_sync_time = 3; |
| 50 | uint32 mib_data_sync = 4; |
| 51 | uint32 version = 5; |
| 52 | |
| 53 | repeated MibClassData classes = 6 |
| 54 | [(voltha.child_node) = {key: "class_id"}]; |
| 55 | } |