blob: 696642aae00750ded3d15fc506a2981690dd3beb [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// Aal5PerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity AAL5 performance monitoring history data
27const Aal5PerformanceMonitoringHistoryDataClassID ClassID = ClassID(18)
28
29var aal5performancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// Aal5PerformanceMonitoringHistoryData (class ID #18)
32// This ME collects PM data as a result of performing segmentation and reassembly (SAR) and
33// convergence sublayer (CS) level protocol monitoring. Instances of this ME are created and
34// deleted by the OLT.
35//
36// For a complete discussion of generic PM architecture, refer to clause I.4.
37//
38// Relationships
39// An instance of this ME is associated with an instance of an IW VCC TP that represents AAL5
40// functions.
41//
42// Attributes
43// Managed Entity Id
44// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
45// identical ID, this ME is implicitly linked to an instance of the IW VCC TP. (R, setbycreate)
46// (mandatory) (2-bytes)
47//
48// Interval End Time
49// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
50// (mandatory) (1-byte)
51//
52// Threshold Data 1_2 Id
53// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
54// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
55// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
56//
57// Sum Of Invalid Cs Field Errors
58// Sum of invalid CS field errors: This attribute counts the sum of invalid CS field errors. For
59// AAL type 5, this attribute is a single count of the number of CS PDUs discarded due to one of
60// the following error conditions: invalid common part indicator (CPI), oversized received SDU, or
61// length violation. (R) (mandatory) (4-bytes)
62//
63// Crc Violations
64// CRC violations: This attribute counts CRC violations detected on incoming SAR PDUs. (R)
65// (mandatory) (4-bytes)
66//
67// Reassembly Timer Expirations
68// Reassembly timer expirations: This attribute counts reassembly timer expirations. (R) (mandatory
69// if reassembly timer is implemented) (4-bytes)
70//
71// Buffer Overflows
72// Buffer overflows: This attribute counts the number of times where there was not enough buffer
73// space for a reassembled packet. (R) (mandatory) (4-bytes)
74//
75// Encap Protocol Errors
76// Encap protocol errors: This attribute counts the number of times that [IETF RFC 2684]
77// encapsulation protocol detected a bad header. (R) (mandatory) (4-bytes)
78//
79type Aal5PerformanceMonitoringHistoryData struct {
80 ManagedEntityDefinition
81 Attributes AttributeValueMap
82}
83
84func init() {
85 aal5performancemonitoringhistorydataBME = &ManagedEntityDefinition{
86 Name: "Aal5PerformanceMonitoringHistoryData",
87 ClassID: 18,
88 MessageTypes: mapset.NewSetWith(
89 Create,
90 Delete,
91 Get,
92 Set,
93 ),
94 AllowedAttributeMask: 0xfe00,
95 AttributeDefinitions: AttributeDefinitionMap{
96 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
97 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
98 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
99 3: Uint32Field("SumOfInvalidCsFieldErrors", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
100 4: Uint32Field("CrcViolations", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
101 5: Uint32Field("ReassemblyTimerExpirations", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
102 6: Uint32Field("BufferOverflows", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
103 7: Uint32Field("EncapProtocolErrors", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
104 },
105 Access: CreatedByOlt,
106 Support: UnknownSupport,
107 }
108}
109
110// NewAal5PerformanceMonitoringHistoryData (class ID 18) creates the basic
111// Managed Entity definition that is used to validate an ME of this type that
112// is received from or transmitted to the OMCC.
113func NewAal5PerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
114 return NewManagedEntity(*aal5performancemonitoringhistorydataBME, params...)
115}