blob: 5f0b1c6e93dbfb89e5842682d84eed0176a40273 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// XdslXtuCPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL xTU-C performance monitoring history data part 2
27const XdslXtuCPerformanceMonitoringHistoryDataPart2ClassID ClassID = ClassID(408)
28
29var xdslxtucperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
30
31// XdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID #408)
32// This ME collects PM data on the xTUC to xTUR path as seen from the xTU-C. Instances of this ME
33// are created and deleted by the OLT.
34//
35// For a complete discussion of generic PM architecture, refer to clause I.4.
36//
37// Relationships
38// An instance of this ME is associated with an xDSL UNI.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R,
44// setbycreate) (mandatory) (2-bytes)
45//
46// Interval End Time
47// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
48// (mandatory) (1-byte)
49//
50// Threshold Data 1_2 Id
51// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
52// that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
53//
54// Leftr Defect Seconds
55// "leftr" defect seconds: If retransmission is used, this attribute is a count of the seconds with
56// a near-end ''leftr'' defect present - see clause 7.2.1.1.6 of [ITU-T G.997.1]. (R) (mandatory)
57// (2-bytes)
58//
59// Error_Free Bits Counter
60// Error-free bits counter: If retransmission is used, this attribute is a count of the number of
61// error-free bits passed over the B1 reference point, divided by 216 - see clause-7.2.1.1.7 of
62// [ITU-T G.997.1]. (R) (mandatory) (4-bytes)
63//
64// Minimum Error_Free Throughput Mineftr
65// Minimum error-free throughput (MINEFTR): If retransmission is used, this attribute is the
66// minimum error-free throughput in bits per second - see clause 7.2.1.1.8 of [ITUT-G.997.1]. (R)
67// (mandatory) (4-bytes)
68//
69type XdslXtuCPerformanceMonitoringHistoryDataPart2 struct {
70 ManagedEntityDefinition
71 Attributes AttributeValueMap
72}
73
74func init() {
75 xdslxtucperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
76 Name: "XdslXtuCPerformanceMonitoringHistoryDataPart2",
77 ClassID: 408,
78 MessageTypes: mapset.NewSetWith(
79 Create,
80 Delete,
81 Get,
82 Set,
83 ),
84 AllowedAttributeMask: 0xf800,
85 AttributeDefinitions: AttributeDefinitionMap{
86 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
87 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
88 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
89 3: Uint16Field("LeftrDefectSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
90 4: Uint32Field("ErrorFreeBitsCounter", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
91 5: Uint32Field("MinimumErrorFreeThroughputMineftr", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
92 },
93 Access: CreatedByOlt,
94 Support: UnknownSupport,
95 }
96}
97
98// NewXdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID 408) creates the basic
99// Managed Entity definition that is used to validate an ME of this type that
100// is received from or transmitted to the OMCC.
101func NewXdslXtuCPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
102 return NewManagedEntity(*xdslxtucperformancemonitoringhistorydatapart2BME, params...)
103}