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