Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
| 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 |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 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 | */ |
| 17 | /* |
| 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 | // EfmBondingGroupPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity EFM bonding group performance monitoring history data |
| 30 | const EfmBondingGroupPerformanceMonitoringHistoryDataClassID ClassID = ClassID(421) |
| 31 | |
| 32 | var efmbondinggroupperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 33 | |
| 34 | // EfmBondingGroupPerformanceMonitoringHistoryData (class ID #421) |
| 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 |
| 43 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 44 | // identical ID, this ME is implicitly linked to an instance of the EFM bonding group. (R, |
| 45 | // setbycreate) (mandatory) (2-bytes) |
| 46 | // |
| 47 | // Interval End Time |
| 48 | // Interval end time: This attribute identifies the most recently finished 15-min interval. (R) |
| 49 | // (mandatory) (1-byte) |
| 50 | // |
| 51 | // Threshold Data 1_2 Id |
| 52 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs |
| 53 | // that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 54 | // |
| 55 | // Rx Bad Fragments |
| 56 | // Rx bad fragments: Clause 45.2.3.33 of [IEEE 802.3]. (R) (mandatory) (4-bytes) |
| 57 | // |
| 58 | // Rx Lost Fragments |
| 59 | // Rx lost fragments: Clause 45.2.3.34 of [IEEE 802.3]. (R) (mandatory) (4-bytes) |
| 60 | // |
| 61 | // Rx Lost Starts |
| 62 | // Rx lost starts: Clause 45.2.3.35 of [IEEE 802.3]. (R) (mandatory) (4-bytes) |
| 63 | // |
| 64 | // Rx Lost Ends |
| 65 | // Rx lost ends: Clause 45.2.3.36 of [IEEE 802.3]. (R) (mandatory) (4-bytes) |
| 66 | // |
| 67 | // Rx Frames |
| 68 | // Rx frames: Number of Ethernet frames received over this group. (R) (mandatory) (4-bytes) |
| 69 | // |
| 70 | // Tx Frames |
| 71 | // Tx frames: Number of Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes) |
| 72 | // |
| 73 | // Rx Bytes |
| 74 | // Rx bytes: Number of bytes contained in the Ethernet frames received over this group. (R) |
| 75 | // (mandatory) (8-bytes) |
| 76 | // |
| 77 | // Tx Bytes |
| 78 | // Tx bytes: Number of bytes contained in the Ethernet frames transmitted over this group. (R) |
| 79 | // (mandatory) (8-bytes) |
| 80 | // |
| 81 | // Tx Discarded Frames |
| 82 | // Tx discarded frames: Number of Ethernet frames discarded by the group transmit function. (R) |
| 83 | // (mandatory) (4-bytes) |
| 84 | // |
| 85 | // Tx Discarded Bytes |
| 86 | // Tx discarded bytes: Number of bytes contained in the Ethernet frames discarded by the group |
| 87 | // transmit function. (R) (mandatory) (4-bytes) |
| 88 | // |
| 89 | type EfmBondingGroupPerformanceMonitoringHistoryData struct { |
| 90 | ManagedEntityDefinition |
| 91 | Attributes AttributeValueMap |
| 92 | } |
| 93 | |
| 94 | func init() { |
| 95 | efmbondinggroupperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 96 | Name: "EfmBondingGroupPerformanceMonitoringHistoryData", |
| 97 | ClassID: 421, |
| 98 | MessageTypes: mapset.NewSetWith( |
| 99 | Create, |
| 100 | Delete, |
| 101 | Get, |
| 102 | Set, |
Girish Gowdra | e268310 | 2021-03-05 08:24:26 -0800 | [diff] [blame] | 103 | GetCurrentData, |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 104 | ), |
| 105 | AllowedAttributeMask: 0xfff0, |
| 106 | AttributeDefinitions: AttributeDefinitionMap{ |
| 107 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 108 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 109 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 110 | 3: Uint32Field("RxBadFragments", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 111 | 4: Uint32Field("RxLostFragments", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 112 | 5: Uint32Field("RxLostStarts", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 113 | 6: Uint32Field("RxLostEnds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 114 | 7: Uint32Field("RxFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 115 | 8: Uint32Field("TxFrames", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 116 | 9: Uint64Field("RxBytes", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 117 | 10: Uint64Field("TxBytes", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 118 | 11: Uint32Field("TxDiscardedFrames", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11), |
| 119 | 12: Uint32Field("TxDiscardedBytes", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12), |
| 120 | }, |
| 121 | Access: CreatedByOlt, |
| 122 | Support: UnknownSupport, |
| 123 | Alarms: AlarmMap{ |
| 124 | 0: "Rx bad fragments", |
| 125 | 1: "Rx lost fragments", |
| 126 | 2: "Rx lost starts", |
| 127 | 3: "Rx lost ends", |
| 128 | }, |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | // NewEfmBondingGroupPerformanceMonitoringHistoryData (class ID 421) creates the basic |
| 133 | // Managed Entity definition that is used to validate an ME of this type that |
| 134 | // is received from or transmitted to the OMCC. |
| 135 | func NewEfmBondingGroupPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 136 | return NewManagedEntity(*efmbondinggroupperformancemonitoringhistorydataBME, params...) |
| 137 | } |