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