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 | 34ebcb6 | 2021-02-02 12:13:58 -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 | // XdslXtuRPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL xTU-R performance monitoring history data |
| 30 | const XdslXtuRPerformanceMonitoringHistoryDataClassID ClassID = ClassID(113) |
| 31 | |
| 32 | var xdslxturperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 33 | |
| 34 | // XdslXtuRPerformanceMonitoringHistoryData (class ID #113) |
| 35 | // This ME collects PM data of the xTUC to xTUR path as seen from the xTU-R. Instances of this ME |
| 36 | // are created and deleted by the OLT. |
| 37 | // |
| 38 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 39 | // |
| 40 | // Relationships |
| 41 | // An instance of this ME is associated with an xDSL UNI. |
| 42 | // |
| 43 | // Attributes |
| 44 | // Managed Entity Id |
| 45 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 46 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, |
| 47 | // setbycreate) (mandatory) (2-bytes) |
| 48 | // |
| 49 | // Interval End Time |
| 50 | // Interval end time: This attribute identifies the most recently finished 15-min interval. (R) |
| 51 | // (mandatory) (1-byte) |
| 52 | // |
| 53 | // Threshold Data 1_2 Id |
| 54 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that |
| 55 | // contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold |
| 56 | // data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 57 | // |
| 58 | // Loss Of Frame Seconds |
| 59 | // Loss of frame seconds: (R) (mandatory) (2-bytes) |
| 60 | // |
| 61 | // Loss Of Signal Seconds |
| 62 | // Loss of signal seconds: (R) (mandatory) (2-bytes) |
| 63 | // |
| 64 | // Loss Of Power Seconds |
| 65 | // Loss of power seconds: (R) (mandatory) (2-bytes) |
| 66 | // |
| 67 | // Errored Seconds |
| 68 | // Errored seconds: This attribute counts 1-s intervals with one or more far end block error (FEBE) |
| 69 | // anomalies summed over all transmitted bearer channels, or one or more LOSFE defects, or one or |
| 70 | // more RDI defects, or one or more LPR-FE defects. (R) (mandatory) (2-bytes) |
| 71 | // |
| 72 | // Severely Errored Seconds |
| 73 | // (R) (mandatory) (2-bytes) |
| 74 | // |
| 75 | // Fec Seconds |
| 76 | // FEC seconds: This attribute counts seconds during which there was an FEC anomaly. (R) |
| 77 | // (mandatory) (2-bytes) |
| 78 | // |
| 79 | // Unavailable Seconds |
| 80 | // (R) (mandatory) (2-bytes) |
| 81 | // |
| 82 | // Leftr Defect Seconds |
| 83 | // "leftr" defect seconds: If retransmission is used, this parameter is a count of the seconds with |
| 84 | // a near-end ''leftr'' defect present - see clause 7.2.1.1.6 of [ITUT-G.997.1]. (R) (optional) |
| 85 | // (2-bytes) |
| 86 | // |
| 87 | // Error_Free Bits Counter |
| 88 | // Error-free bits counter: If retransmission is used, this parameter is a count of the number of |
| 89 | // error-free bits passed over the B1 reference point, divided by 216 - see clause 7.2.1.1.7 of |
| 90 | // [ITU-T G.997.1]. (R) (optional) (4-bytes) |
| 91 | // |
| 92 | // Minimum Error_Free Throughput Mineftr |
| 93 | // Minimum error-free throughput (MINEFTR): If retransmission is used, this parameter is the |
| 94 | // minimum error-free throughput in bits per second - see clause 7.2.1.1.8 of [ITUT-G.997.1]. (R) |
| 95 | // (optional) (4-bytes) |
| 96 | // |
| 97 | type XdslXtuRPerformanceMonitoringHistoryData struct { |
| 98 | ManagedEntityDefinition |
| 99 | Attributes AttributeValueMap |
| 100 | } |
| 101 | |
| 102 | func init() { |
| 103 | xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 104 | Name: "XdslXtuRPerformanceMonitoringHistoryData", |
| 105 | ClassID: 113, |
| 106 | MessageTypes: mapset.NewSetWith( |
| 107 | Create, |
| 108 | Delete, |
| 109 | Get, |
| 110 | Set, |
| 111 | ), |
| 112 | AllowedAttributeMask: 0xfff0, |
| 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: Uint16Field("LossOfFrameSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 118 | 4: Uint16Field("LossOfSignalSeconds", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 119 | 5: Uint16Field("LossOfPowerSeconds", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 120 | 6: Uint16Field("ErroredSeconds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 121 | 7: Uint16Field("SeverelyErroredSeconds", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 122 | 8: Uint16Field("FecSeconds", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 123 | 9: Uint16Field("UnavailableSeconds", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 124 | 10: Uint16Field("LeftrDefectSeconds", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10), |
| 125 | 11: Uint32Field("ErrorFreeBitsCounter", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11), |
| 126 | 12: Uint32Field("MinimumErrorFreeThroughputMineftr", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12), |
| 127 | }, |
| 128 | Access: CreatedByOlt, |
| 129 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame^] | 130 | Alarms: AlarmMap{ |
| 131 | 0: "Loss of frame seconds", |
| 132 | 1: "Loss of signal seconds", |
| 133 | 2: "Loss of power seconds", |
| 134 | 3: "Errored seconds", |
| 135 | 4: "Severely errored seconds", |
| 136 | 5: "FEC seconds", |
| 137 | 6: "Unavailable seconds", |
| 138 | 7: "leftr defect seconds", |
| 139 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 140 | } |
| 141 | } |
| 142 | |
| 143 | // NewXdslXtuRPerformanceMonitoringHistoryData (class ID 113) creates the basic |
| 144 | // Managed Entity definition that is used to validate an ME of this type that |
| 145 | // is received from or transmitted to the OMCC. |
| 146 | func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 147 | return NewManagedEntity(*xdslxturperformancemonitoringhistorydataBME, params...) |
| 148 | } |