Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * NOTE: This file was generated, manual edits will be overwritten! |
| 19 | * |
| 20 | * Generated by 'goCodeGenerator.py': |
| 21 | * https://github.com/cboling/OMCI-parser/README.md |
| 22 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity EFM bonding group performance monitoring history data part 2 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassID = ClassID(421) // 0x01a5 |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var efmbondinggroupperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // EfmBondingGroupPerformanceMonitoringHistoryDataPart2 (Class ID: #421 / 0x01a5) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // This ME collects PM data as seen at the xTU-C. Instances of this ME are created and deleted by |
| 36 | // the OLT. |
| 37 | // |
| 38 | // Relationships |
| 39 | // An instance of this ME is associated with an xDSL UNI. |
| 40 | // |
| 41 | // Attributes |
| 42 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 43 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 44 | // implicitly linked to an instance of the EFM bonding group. (R, setbycreate) (mandatory) |
| 45 | // (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 46 | // |
| 47 | // Interval End Time |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 48 | // This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 49 | // |
| 50 | // Threshold Data 1_2 Id |
| 51 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs |
| 52 | // that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 53 | // |
| 54 | // Rx Unicast Frames |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 55 | // Number of unicast Ethernet frames received over this group. (R) (mandatory) (4-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 56 | // |
| 57 | // Tx Unicast Frames |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 58 | // Number of unicast Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 59 | // |
| 60 | // Rx Unicast Bytes |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 61 | // Number of bytes contained in the unicast Ethernet frames received over this group. (R) |
| 62 | // (mandatory) (8-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 63 | // |
| 64 | // Tx Unicast Bytes |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 65 | // Number of bytes contained in the unicast Ethernet frames transmitted over this group. (R) |
| 66 | // (mandatory) (8-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 67 | // |
| 68 | // Rx Broadcast Frames |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 69 | // Number of broadcast Ethernet frames received over this group. (R) (mandatory) (4-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 70 | // |
| 71 | // Tx Broadcast Frames |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 72 | // Number of broadcast Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 73 | // |
| 74 | // Rx Broadcast Bytes |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 75 | // Number of bytes contained in the broadcast Ethernet frames received over this group. (R) |
| 76 | // (mandatory) (8-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 77 | // |
| 78 | // Tx Broadcast Bytes |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 79 | // Number of bytes contained in the broadcast Ethernet frames transmitted over this group. (R) |
| 80 | // (mandatory) (8-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 81 | // |
| 82 | // Rx Multicast Frames |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 83 | // Number of multicast Ethernet frames received over this group. (R) (mandatory) (4-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 84 | // |
| 85 | // Tx Multicast Frames |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 86 | // Number of multicast Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 87 | // |
| 88 | // Rx Multicast Bytes |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 89 | // Number of bytes contained in the multicast Ethernet frames received over this group. (R) |
| 90 | // (mandatory) (8-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 91 | // |
| 92 | // Tx Multicast Bytes |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 93 | // Number of bytes contained in the multicast Ethernet frames transmitted over this group. (R) |
| 94 | // (mandatory) (8-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 95 | // |
| 96 | type EfmBondingGroupPerformanceMonitoringHistoryDataPart2 struct { |
| 97 | ManagedEntityDefinition |
| 98 | Attributes AttributeValueMap |
| 99 | } |
| 100 | |
| 101 | func init() { |
| 102 | efmbondinggroupperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{ |
| 103 | Name: "EfmBondingGroupPerformanceMonitoringHistoryDataPart2", |
Chip Boling | 7a6e8d9 | 2021-07-14 15:42:21 -0500 | [diff] [blame] | 104 | ClassID: 421, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 105 | MessageTypes: mapset.NewSetWith( |
| 106 | Create, |
| 107 | Delete, |
| 108 | Get, |
| 109 | Set, |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 110 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 111 | ), |
| 112 | AllowedAttributeMask: 0xfffc, |
| 113 | AttributeDefinitions: AttributeDefinitionMap{ |
| 114 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 115 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 116 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 117 | 3: Uint32Field("RxUnicastFrames", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 118 | 4: Uint32Field("TxUnicastFrames", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 119 | 5: Uint64Field("RxUnicastBytes", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 120 | 6: Uint64Field("TxUnicastBytes", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 121 | 7: Uint32Field("RxBroadcastFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 122 | 8: Uint32Field("TxBroadcastFrames", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 123 | 9: Uint64Field("RxBroadcastBytes", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 124 | 10: Uint64Field("TxBroadcastBytes", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 125 | 11: Uint32Field("RxMulticastFrames", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11), |
| 126 | 12: Uint32Field("TxMulticastFrames", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12), |
| 127 | 13: Uint64Field("RxMulticastBytes", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13), |
| 128 | 14: Uint64Field("TxMulticastBytes", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14), |
| 129 | }, |
| 130 | Access: CreatedByOlt, |
| 131 | Support: UnknownSupport, |
| 132 | } |
| 133 | } |
| 134 | |
Chip Boling | 7a6e8d9 | 2021-07-14 15:42:21 -0500 | [diff] [blame] | 135 | // NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2 (class ID 421) creates the basic |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 136 | // Managed Entity definition that is used to validate an ME of this type that |
| 137 | // is received from or transmitted to the OMCC. |
| 138 | func NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 139 | return NewManagedEntity(*efmbondinggroupperformancemonitoringhistorydatapart2BME, params...) |
| 140 | } |