blob: ebc86986f44a72722bed79b0a92979a42385a206 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const XdslXtuCPerformanceMonitoringHistoryDataPart2ClassId ClassID = ClassID(408)
25
26var xdslxtucperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
27
28// XdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID #408)
29// This ME collects PM data on the xTUC to xTUR path as seen from the xTU-C. 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 and 2 MEs
49// that contain PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
50//
51// Leftr Defect Seconds
52// "leftr" defect seconds: If retransmission is used, this attribute is a count of the seconds with
53// a near-end ''leftr'' defect present – see clause 7.2.1.1.6 of [ITU-T G.997.1]. (R) (mandatory)
54// (2 bytes)
55//
56// Error_Free Bits Counter
57// Error-free bits counter: If retransmission is used, this attribute is a count of the number of
58// error-free bits passed over the β1 reference point, divided by 216 – see clause 7.2.1.1.7 of
59// [ITU-T G.997.1]. (R) (mandatory) (4 bytes)
60//
61// Minimum Error_Free Throughput Mineftr
62// Minimum error-free throughput (MINEFTR): If retransmission is used, this attribute is the
63// minimum error-free throughput in bits per second – see clause 7.2.1.1.8 of [ITUT G.997.1]. (R)
64// (mandatory) (4 bytes)
65//
66type XdslXtuCPerformanceMonitoringHistoryDataPart2 struct {
67 ManagedEntityDefinition
68 Attributes AttributeValueMap
69}
70
71func init() {
72 xdslxtucperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
73 Name: "XdslXtuCPerformanceMonitoringHistoryDataPart2",
74 ClassID: 408,
75 MessageTypes: mapset.NewSetWith(
76 Create,
77 Delete,
78 Get,
79 Set,
80 ),
81 AllowedAttributeMask: 0XF800,
82 AttributeDefinitions: AttributeDefinitionMap{
83 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
84 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
85 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
86 3: Uint16Field("LeftrDefectSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
87 4: Uint32Field("ErrorFreeBitsCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
88 5: Uint32Field("MinimumErrorFreeThroughputMineftr", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
89 },
90 }
91}
92
93// NewXdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID 408 creates the basic
94// Managed Entity definition that is used to validate an ME of this type that
95// is received from the wire, about to be sent on the wire.
96func NewXdslXtuCPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
97 return NewManagedEntity(xdslxtucperformancemonitoringhistorydatapart2BME, params...)
98}