blob: f82cf04d5c4a38b5f02e2cdd5a0447a6f8308e08 [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 PwAtmPerformanceMonitoringHistoryDataClassId ClassID = ClassID(338)
25
26var pwatmperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// PwAtmPerformanceMonitoringHistoryData (class ID #338)
29// This ME collects PM data associated with an ATM pseudowire. Instances of this ME are created and
30// deleted by the OLT.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with an instance of the PW ATM configuration data ME.
36//
37// Attributes
38// Managed Entity Id
39// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
40// identical ID, this ME is implicitly linked to the instance of the PW ATM configuration data ME.
41// (R, setbycreate) (mandatory) (2 bytes)
42//
43// Interval End Time
44// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
45// (mandatory) (1 byte)
46//
47// Threshold Data 1_2 Id
48// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
49// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
50// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
51//
52// Downstream Missing Packets Counter
53// Downstream missing packets counter: This attribute counts missing packets, as detected via
54// control word sequence number gaps. (R) (mandatory) (4 bytes)
55//
56// Downstream Reordered Packets Counter
57// Downstream reordered packets counter: This attribute counts packets detected out of sequence via
58// the control word sequence number, but successfully reordered. Some implementations may not
59// support this feature. (R) (optional) (4 bytes)
60//
61// Downstream Misordered Packets Counter
62// Downstream misordered packets counter: This attribute counts packets detected out of order via
63// the control word sequence numbers. (R) (mandatory) (4 bytes)
64//
65// Upstream Timeout Packets Counter
66// Upstream timeout packets counter: This attribute counts packets transmitted due to timeout
67// expiration while attempting to collect cells. (R) (mandatory) (4 bytes)
68//
69// Upstream Transmitted Cells Counter
70// Upstream transmitted cells counter: This attribute counts transmitted cells. (R) (mandatory)
71// (4 bytes)
72//
73// Upstream Dropped Cells Counter
74// Upstream dropped cells counter: This attribute counts dropped cells. (R) (mandatory) (4 bytes)
75//
76// Upstream Received Cells Counter
77// Upstream received cells counter: This attribute counts received cells. (R) (mandatory) (4 bytes)
78//
79type PwAtmPerformanceMonitoringHistoryData struct {
80 ManagedEntityDefinition
81 Attributes AttributeValueMap
82}
83
84func init() {
85 pwatmperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
86 Name: "PwAtmPerformanceMonitoringHistoryData",
87 ClassID: 338,
88 MessageTypes: mapset.NewSetWith(
89 Create,
90 Delete,
91 Get,
92 Set,
93 ),
94 AllowedAttributeMask: 0XFF80,
95 AttributeDefinitions: AttributeDefinitionMap{
96 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
97 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
98 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
99 3: Uint32Field("DownstreamMissingPacketsCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
100 4: Uint32Field("DownstreamReorderedPacketsCounter", 0, mapset.NewSetWith(Read), false, false, true, false, 4),
101 5: Uint32Field("DownstreamMisorderedPacketsCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
102 6: Uint32Field("UpstreamTimeoutPacketsCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
103 7: Uint32Field("UpstreamTransmittedCellsCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
104 8: Uint32Field("UpstreamDroppedCellsCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
105 9: Uint32Field("UpstreamReceivedCellsCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
106 },
107 }
108}
109
110// NewPwAtmPerformanceMonitoringHistoryData (class ID 338 creates the basic
111// Managed Entity definition that is used to validate an ME of this type that
112// is received from the wire, about to be sent on the wire.
113func NewPwAtmPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
114 return NewManagedEntity(pwatmperformancemonitoringhistorydataBME, params...)
115}