blob: d2eb1a306264270faa06a40b26e7d6b9bbaf5f6a [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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 Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 Boling34ebcb62021-02-02 12:13:58 -060017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
24package generated
25
26import "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
30const XdslXtuRPerformanceMonitoringHistoryDataClassID ClassID = ClassID(113)
31
32var 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//
97type XdslXtuRPerformanceMonitoringHistoryData struct {
98 ManagedEntityDefinition
99 Attributes AttributeValueMap
100}
101
102func init() {
103 xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
104 Name: "XdslXtuRPerformanceMonitoringHistoryData",
105 ClassID: 113,
106 MessageTypes: mapset.NewSetWith(
107 Create,
108 Delete,
109 Get,
110 Set,
Chip Boling2d51f052021-02-09 09:04:15 -0600111 GetCurrentData,
Chip Boling6e27b352020-02-14 09:10:01 -0600112 ),
113 AllowedAttributeMask: 0xfff0,
114 AttributeDefinitions: AttributeDefinitionMap{
115 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
116 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
117 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
118 3: Uint16Field("LossOfFrameSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
119 4: Uint16Field("LossOfSignalSeconds", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
120 5: Uint16Field("LossOfPowerSeconds", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
121 6: Uint16Field("ErroredSeconds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
122 7: Uint16Field("SeverelyErroredSeconds", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
123 8: Uint16Field("FecSeconds", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
124 9: Uint16Field("UnavailableSeconds", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
125 10: Uint16Field("LeftrDefectSeconds", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
126 11: Uint32Field("ErrorFreeBitsCounter", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
127 12: Uint32Field("MinimumErrorFreeThroughputMineftr", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
128 },
129 Access: CreatedByOlt,
130 Support: UnknownSupport,
Chip Boling34ebcb62021-02-02 12:13:58 -0600131 Alarms: AlarmMap{
132 0: "Loss of frame seconds",
133 1: "Loss of signal seconds",
134 2: "Loss of power seconds",
135 3: "Errored seconds",
136 4: "Severely errored seconds",
137 5: "FEC seconds",
138 6: "Unavailable seconds",
139 7: "leftr defect seconds",
140 },
Chip Boling6e27b352020-02-14 09:10:01 -0600141 }
142}
143
144// NewXdslXtuRPerformanceMonitoringHistoryData (class ID 113) creates the basic
145// Managed Entity definition that is used to validate an ME of this type that
146// is received from or transmitted to the OMCC.
147func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
148 return NewManagedEntity(*xdslxturperformancemonitoringhistorydataBME, params...)
149}