Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [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 | |
Matteo Scandolo | b3c08ae | 2020-10-14 13:15:43 -0700 | [diff] [blame] | 18 | option go_package = "github.com/opencord/voltha-protos/v4/go/omci"; |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 19 | option java_package = "org.opencord.voltha.omci"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 20 | |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 21 | package omci; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 22 | |
| 23 | import "voltha_protos/meta.proto"; |
| 24 | |
| 25 | |
| 26 | message AlarmAttributeData { |
| 27 | string name = 1 [(voltha.access) = READ_ONLY]; |
| 28 | string value = 2; |
| 29 | } |
| 30 | |
| 31 | message AlarmInstanceData { |
| 32 | uint32 instance_id = 1 [(voltha.access) = READ_ONLY]; |
| 33 | string created = 2; |
| 34 | string modified = 3; |
| 35 | |
| 36 | repeated AlarmAttributeData attributes = 4 |
| 37 | [(voltha.child_node) = {key: "name"}]; |
| 38 | } |
| 39 | |
| 40 | message AlarmClassData { |
| 41 | uint32 class_id = 1 [(voltha.access) = READ_ONLY]; |
| 42 | |
| 43 | repeated AlarmInstanceData instances= 2 |
| 44 | [(voltha.child_node) = {key: "instance_id"}]; |
| 45 | } |
| 46 | |
| 47 | message AlarmManagedEntity { |
| 48 | uint32 class_id = 1 [(voltha.access) = READ_ONLY]; |
| 49 | string name = 2 [(voltha.access) = READ_ONLY]; |
| 50 | } |
| 51 | |
| 52 | message AlarmMessageType { |
| 53 | uint32 message_type = 1 [(voltha.access) = READ_ONLY]; |
| 54 | } |
| 55 | |
| 56 | message AlarmDeviceData { |
| 57 | string device_id = 1 [(voltha.access) = READ_ONLY]; |
| 58 | string created = 2; |
| 59 | uint32 last_alarm_sequence = 3; |
| 60 | string last_sync_time = 4; |
| 61 | uint32 version = 5; |
| 62 | |
| 63 | |
| 64 | repeated AlarmClassData classes = 6 |
| 65 | [(voltha.child_node) = {key: "class_id"}]; |
| 66 | |
| 67 | repeated AlarmManagedEntity managed_entities = 7; |
| 68 | repeated AlarmMessageType message_types = 8; |
| 69 | } |
| 70 | |
| 71 | message AlarmOpenOmciEventType { |
| 72 | enum OpenOmciEventType { |
| 73 | state_change = 0; // A state machine has transitioned to a new state |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | message AlarmOpenOmciEvent { |
| 78 | AlarmOpenOmciEventType.OpenOmciEventType type = 1; |
| 79 | |
| 80 | string data = 2; // associated data, in json format |
| 81 | } |