blob: f872ba413d9761ea01386bc23d3d4c00a8b11875 [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// PwAtmPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity PW ATM performance monitoring history data
27const PwAtmPerformanceMonitoringHistoryDataClassID ClassID = ClassID(338)
28
29var pwatmperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// PwAtmPerformanceMonitoringHistoryData (class ID #338)
32// This ME collects PM data associated with an ATM pseudowire. Instances of this ME are created and
33// 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 instance of the PW ATM configuration data ME.
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 the instance of the PW ATM configuration data ME.
44// (R, 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 ME that
52// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
53// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
54//
55// Downstream Missing Packets Counter
56// Downstream missing packets counter: This attribute counts missing packets, as detected via
57// control word sequence number gaps. (R) (mandatory) (4-bytes)
58//
59// Downstream Reordered Packets Counter
60// Downstream reordered packets counter: This attribute counts packets detected out of sequence via
61// the control word sequence number, but successfully reordered. Some implementations may not
62// support this feature. (R) (optional) (4-bytes)
63//
64// Downstream Misordered Packets Counter
65// Downstream misordered packets counter: This attribute counts packets detected out of order via
66// the control word sequence numbers. (R) (mandatory) (4-bytes)
67//
68// Upstream Timeout Packets Counter
69// Upstream timeout packets counter: This attribute counts packets transmitted due to timeout
70// expiration while attempting to collect cells. (R) (mandatory) (4-bytes)
71//
72// Upstream Transmitted Cells Counter
73// Upstream transmitted cells counter: This attribute counts transmitted cells. (R) (mandatory)
74// (4-bytes)
75//
76// Upstream Dropped Cells Counter
77// Upstream dropped cells counter: This attribute counts dropped cells. (R) (mandatory) (4-bytes)
78//
79// Upstream Received Cells Counter
80// Upstream received cells counter: This attribute counts received cells. (R) (mandatory) (4-bytes)
81//
82type PwAtmPerformanceMonitoringHistoryData struct {
83 ManagedEntityDefinition
84 Attributes AttributeValueMap
85}
86
87func init() {
88 pwatmperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
89 Name: "PwAtmPerformanceMonitoringHistoryData",
90 ClassID: 338,
91 MessageTypes: mapset.NewSetWith(
92 Create,
93 Delete,
94 Get,
95 Set,
96 ),
97 AllowedAttributeMask: 0xff80,
98 AttributeDefinitions: AttributeDefinitionMap{
99 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
100 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
101 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
102 3: Uint32Field("DownstreamMissingPacketsCounter", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
103 4: Uint32Field("DownstreamReorderedPacketsCounter", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
104 5: Uint32Field("DownstreamMisorderedPacketsCounter", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
105 6: Uint32Field("UpstreamTimeoutPacketsCounter", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
106 7: Uint32Field("UpstreamTransmittedCellsCounter", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
107 8: Uint32Field("UpstreamDroppedCellsCounter", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
108 9: Uint32Field("UpstreamReceivedCellsCounter", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
109 },
110 Access: CreatedByOlt,
111 Support: UnknownSupport,
112 }
113}
114
115// NewPwAtmPerformanceMonitoringHistoryData (class ID 338) creates the basic
116// Managed Entity definition that is used to validate an ME of this type that
117// is received from or transmitted to the OMCC.
118func NewPwAtmPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
119 return NewManagedEntity(*pwatmperformancemonitoringhistorydataBME, params...)
120}