Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 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 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * Unless required by applicable law or agreed to in writing, software |
| 9 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | * See the License for the specific language governing permissions and |
| 12 | * limitations under the License. |
| 13 | */ |
| 14 | /* |
| 15 | * NOTE: This file was generated, manual edits will be overwritten! |
| 16 | * |
| 17 | * Generated by 'goCodeGenerator.py': |
| 18 | * https://github.com/cboling/OMCI-parser/README.md |
| 19 | */ |
| 20 | |
| 21 | package generated |
| 22 | |
| 23 | import "github.com/deckarep/golang-set" |
| 24 | |
| 25 | // XdslXtuRPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI |
| 26 | // Managed entity xDSL xTU-R performance monitoring history data |
| 27 | const XdslXtuRPerformanceMonitoringHistoryDataClassID ClassID = ClassID(113) |
| 28 | |
| 29 | var xdslxturperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 30 | |
| 31 | // XdslXtuRPerformanceMonitoringHistoryData (class ID #113) |
| 32 | // This ME collects PM data of the xTUC to xTUR path as seen from the xTU-R. Instances of this ME |
| 33 | // are created and deleted by the OLT. |
| 34 | // |
| 35 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 36 | // |
| 37 | // Relationships |
| 38 | // An instance of this ME is associated with an xDSL UNI. |
| 39 | // |
| 40 | // Attributes |
| 41 | // Managed Entity Id |
| 42 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 43 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, |
| 44 | // setbycreate) (mandatory) (2-bytes) |
| 45 | // |
| 46 | // Interval End Time |
| 47 | // Interval end time: This attribute identifies the most recently finished 15-min interval. (R) |
| 48 | // (mandatory) (1-byte) |
| 49 | // |
| 50 | // Threshold Data 1_2 Id |
| 51 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that |
| 52 | // contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold |
| 53 | // data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 54 | // |
| 55 | // Loss Of Frame Seconds |
| 56 | // Loss of frame seconds: (R) (mandatory) (2-bytes) |
| 57 | // |
| 58 | // Loss Of Signal Seconds |
| 59 | // Loss of signal seconds: (R) (mandatory) (2-bytes) |
| 60 | // |
| 61 | // Loss Of Power Seconds |
| 62 | // Loss of power seconds: (R) (mandatory) (2-bytes) |
| 63 | // |
| 64 | // Errored Seconds |
| 65 | // Errored seconds: This attribute counts 1-s intervals with one or more far end block error (FEBE) |
| 66 | // anomalies summed over all transmitted bearer channels, or one or more LOSFE defects, or one or |
| 67 | // more RDI defects, or one or more LPR-FE defects. (R) (mandatory) (2-bytes) |
| 68 | // |
| 69 | // Severely Errored Seconds |
| 70 | // (R) (mandatory) (2-bytes) |
| 71 | // |
| 72 | // Fec Seconds |
| 73 | // FEC seconds: This attribute counts seconds during which there was an FEC anomaly. (R) |
| 74 | // (mandatory) (2-bytes) |
| 75 | // |
| 76 | // Unavailable Seconds |
| 77 | // (R) (mandatory) (2-bytes) |
| 78 | // |
| 79 | // Leftr Defect Seconds |
| 80 | // "leftr" defect seconds: If retransmission is used, this parameter is a count of the seconds with |
| 81 | // a near-end ''leftr'' defect present - see clause 7.2.1.1.6 of [ITUT-G.997.1]. (R) (optional) |
| 82 | // (2-bytes) |
| 83 | // |
| 84 | // Error_Free Bits Counter |
| 85 | // Error-free bits counter: If retransmission is used, this parameter is a count of the number of |
| 86 | // error-free bits passed over the B1 reference point, divided by 216 - see clause 7.2.1.1.7 of |
| 87 | // [ITU-T G.997.1]. (R) (optional) (4-bytes) |
| 88 | // |
| 89 | // Minimum Error_Free Throughput Mineftr |
| 90 | // Minimum error-free throughput (MINEFTR): If retransmission is used, this parameter is the |
| 91 | // minimum error-free throughput in bits per second - see clause 7.2.1.1.8 of [ITUT-G.997.1]. (R) |
| 92 | // (optional) (4-bytes) |
| 93 | // |
| 94 | type XdslXtuRPerformanceMonitoringHistoryData struct { |
| 95 | ManagedEntityDefinition |
| 96 | Attributes AttributeValueMap |
| 97 | } |
| 98 | |
| 99 | func init() { |
| 100 | xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 101 | Name: "XdslXtuRPerformanceMonitoringHistoryData", |
| 102 | ClassID: 113, |
| 103 | MessageTypes: mapset.NewSetWith( |
| 104 | Create, |
| 105 | Delete, |
| 106 | Get, |
| 107 | Set, |
| 108 | ), |
| 109 | AllowedAttributeMask: 0xfff0, |
| 110 | AttributeDefinitions: AttributeDefinitionMap{ |
| 111 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 112 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 113 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 114 | 3: Uint16Field("LossOfFrameSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 115 | 4: Uint16Field("LossOfSignalSeconds", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 116 | 5: Uint16Field("LossOfPowerSeconds", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 117 | 6: Uint16Field("ErroredSeconds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 118 | 7: Uint16Field("SeverelyErroredSeconds", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 119 | 8: Uint16Field("FecSeconds", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 120 | 9: Uint16Field("UnavailableSeconds", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 121 | 10: Uint16Field("LeftrDefectSeconds", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10), |
| 122 | 11: Uint32Field("ErrorFreeBitsCounter", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11), |
| 123 | 12: Uint32Field("MinimumErrorFreeThroughputMineftr", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12), |
| 124 | }, |
| 125 | Access: CreatedByOlt, |
| 126 | Support: UnknownSupport, |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | // NewXdslXtuRPerformanceMonitoringHistoryData (class ID 113) creates the basic |
| 131 | // Managed Entity definition that is used to validate an ME of this type that |
| 132 | // is received from or transmitted to the OMCC. |
| 133 | func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 134 | return NewManagedEntity(*xdslxturperformancemonitoringhistorydataBME, params...) |
| 135 | } |