blob: df422ef4d2750e92eb80374c49ede9ec92d566bc [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 */
Andrea Campanella7167ebb2020-02-24 09:56:38 +010017 /*
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// XdslXtuCPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI
29// Managed entity xDSL xTU-C performance monitoring history data part 2
30const XdslXtuCPerformanceMonitoringHistoryDataPart2ClassID ClassID = ClassID(408)
31
32var xdslxtucperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
33
34// XdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID #408)
35// This ME collects PM data on the xTUC to xTUR path as seen from the xTU-C. 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 and 2 MEs
55// that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
56//
57// Leftr Defect Seconds
58// "leftr" defect seconds: If retransmission is used, this attribute is a count of the seconds with
59// a near-end ''leftr'' defect present - see clause 7.2.1.1.6 of [ITU-T G.997.1]. (R) (mandatory)
60// (2-bytes)
61//
62// Error_Free Bits Counter
63// Error-free bits counter: If retransmission is used, this attribute is a count of the number of
64// error-free bits passed over the B1 reference point, divided by 216 - see clause-7.2.1.1.7 of
65// [ITU-T G.997.1]. (R) (mandatory) (4-bytes)
66//
67// Minimum Error_Free Throughput Mineftr
68// Minimum error-free throughput (MINEFTR): If retransmission is used, this attribute is the
69// minimum error-free throughput in bits per second - see clause 7.2.1.1.8 of [ITUT-G.997.1]. (R)
70// (mandatory) (4-bytes)
71//
72type XdslXtuCPerformanceMonitoringHistoryDataPart2 struct {
73 ManagedEntityDefinition
74 Attributes AttributeValueMap
75}
76
77func init() {
78 xdslxtucperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
79 Name: "XdslXtuCPerformanceMonitoringHistoryDataPart2",
80 ClassID: 408,
81 MessageTypes: mapset.NewSetWith(
82 Create,
83 Delete,
84 Get,
85 Set,
86 ),
87 AllowedAttributeMask: 0xf800,
88 AttributeDefinitions: AttributeDefinitionMap{
89 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
90 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
91 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
92 3: Uint16Field("LeftrDefectSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
93 4: Uint32Field("ErrorFreeBitsCounter", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
94 5: Uint32Field("MinimumErrorFreeThroughputMineftr", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
95 },
96 Access: CreatedByOlt,
97 Support: UnknownSupport,
98 }
99}
100
101// NewXdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID 408) creates the basic
102// Managed Entity definition that is used to validate an ME of this type that
103// is received from or transmitted to the OMCC.
104func NewXdslXtuCPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
105 return NewManagedEntity(*xdslxtucperformancemonitoringhistorydatapart2BME, params...)
106}