Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [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 | package generated |
| 21 | |
| 22 | import "github.com/deckarep/golang-set" |
| 23 | |
| 24 | const XdslXtuRPerformanceMonitoringHistoryDataClassId ClassID = ClassID(113) |
| 25 | |
| 26 | var xdslxturperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 27 | |
| 28 | // XdslXtuRPerformanceMonitoringHistoryData (class ID #113) |
| 29 | // This ME collects PM data of the xTUC to xTUR path as seen from the xTU-R. Instances of this ME |
| 30 | // are created and deleted by the OLT. |
| 31 | // |
| 32 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 33 | // |
| 34 | // Relationships |
| 35 | // An instance of this ME is associated with an xDSL UNI. |
| 36 | // |
| 37 | // Attributes |
| 38 | // Managed Entity Id |
| 39 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 40 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, |
| 41 | // setbycreate) (mandatory) (2 bytes) |
| 42 | // |
| 43 | // Interval End Time |
| 44 | // Interval end time: This attribute identifies the most recently finished 15 min interval. (R) |
| 45 | // (mandatory) (1 byte) |
| 46 | // |
| 47 | // Threshold Data 1_2 Id |
| 48 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that |
| 49 | // contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold |
| 50 | // data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes) |
| 51 | // |
| 52 | // Loss Of Frame Seconds |
| 53 | // Loss of frame seconds: (R) (mandatory) (2 bytes) |
| 54 | // |
| 55 | // Loss Of Signal Seconds |
| 56 | // Loss of signal seconds: (R) (mandatory) (2 bytes) |
| 57 | // |
| 58 | // Loss Of Power Seconds |
| 59 | // Loss of power seconds: (R) (mandatory) (2 bytes) |
| 60 | // |
| 61 | // Errored Seconds |
| 62 | // Errored seconds: This attribute counts 1 s intervals with one or more far end block error (FEBE) |
| 63 | // anomalies summed over all transmitted bearer channels, or one or more LOSFE defects, or one or |
| 64 | // more RDI defects, or one or more LPR-FE defects. (R) (mandatory) (2 bytes) |
| 65 | // |
| 66 | // Severely Errored Seconds |
| 67 | // (R) (mandatory) (2 bytes) |
| 68 | // |
| 69 | // Fec Seconds |
| 70 | // FEC seconds: This attribute counts seconds during which there was an FEC anomaly. (R) |
| 71 | // (mandatory) (2 bytes) |
| 72 | // |
| 73 | // Unavailable Seconds |
| 74 | // (R) (mandatory) (2 bytes) |
| 75 | // |
| 76 | // Leftr Defect Seconds |
| 77 | // "leftr" defect seconds: If retransmission is used, this parameter is a count of the seconds with |
| 78 | // a near-end ''leftr'' defect present – see clause 7.2.1.1.6 of [ITUT G.997.1]. (R) (optional) |
| 79 | // (2 bytes) |
| 80 | // |
| 81 | // Error_Free Bits Counter |
| 82 | // Error-free bits counter: If retransmission is used, this parameter is a count of the number of |
| 83 | // error-free bits passed over the β1 reference point, divided by 216 – see clause 7.2.1.1.7 of |
| 84 | // [ITU-T G.997.1]. (R) (optional) (4 bytes) |
| 85 | // |
| 86 | // Minimum Error_Free Throughput Mineftr |
| 87 | // Minimum error-free throughput (MINEFTR): If retransmission is used, this parameter is the |
| 88 | // minimum error-free throughput in bits per second – see clause 7.2.1.1.8 of [ITUT G.997.1]. (R) |
| 89 | // (optional) (4 bytes) |
| 90 | // |
| 91 | type XdslXtuRPerformanceMonitoringHistoryData struct { |
| 92 | ManagedEntityDefinition |
| 93 | Attributes AttributeValueMap |
| 94 | } |
| 95 | |
| 96 | func init() { |
| 97 | xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 98 | Name: "XdslXtuRPerformanceMonitoringHistoryData", |
| 99 | ClassID: 113, |
| 100 | MessageTypes: mapset.NewSetWith( |
| 101 | Create, |
| 102 | Delete, |
| 103 | Get, |
| 104 | Set, |
| 105 | ), |
| 106 | AllowedAttributeMask: 0XFFF0, |
| 107 | AttributeDefinitions: AttributeDefinitionMap{ |
| 108 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 109 | 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1), |
| 110 | 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2), |
| 111 | 3: Uint16Field("LossOfFrameSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 3), |
| 112 | 4: Uint16Field("LossOfSignalSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 4), |
| 113 | 5: Uint16Field("LossOfPowerSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 5), |
| 114 | 6: Uint16Field("ErroredSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 6), |
| 115 | 7: Uint16Field("SeverelyErroredSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 7), |
| 116 | 8: Uint16Field("FecSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 8), |
| 117 | 9: Uint16Field("UnavailableSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 9), |
| 118 | 10: Uint16Field("LeftrDefectSeconds", 0, mapset.NewSetWith(Read), false, false, true, false, 10), |
| 119 | 11: Uint32Field("ErrorFreeBitsCounter", 0, mapset.NewSetWith(Read), false, false, true, false, 11), |
| 120 | 12: Uint32Field("MinimumErrorFreeThroughputMineftr", 0, mapset.NewSetWith(Read), false, false, true, false, 12), |
| 121 | }, |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // NewXdslXtuRPerformanceMonitoringHistoryData (class ID 113 creates the basic |
| 126 | // Managed Entity definition that is used to validate an ME of this type that |
| 127 | // is received from the wire, about to be sent on the wire. |
| 128 | func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 129 | return NewManagedEntity(xdslxturperformancemonitoringhistorydataBME, params...) |
| 130 | } |