blob: f5963d42a879c6e817019a34f5aeab37caf898f1 [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 EfmBondingLinkPerformanceMonitoringHistoryDataClassId ClassID = ClassID(423)
25
26var efmbondinglinkperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// EfmBondingLinkPerformanceMonitoringHistoryData (class ID #423)
29// This ME collects PM data as seen at the xTU-C. Instances of this ME are created and deleted by
30// the OLT.
31//
32// Relationships
33// An instance of this ME is associated with an xDSL UNI.
34//
35// Attributes
36// Managed Entity Id
37// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
38// identical ID, this ME is implicitly linked to an instance of the EFM bonding link. (R,
39// setbycreate) (mandatory) (2 bytes)
40//
41// Interval End Time
42// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
43// (mandatory) (1 byte)
44//
45// Threshold Data 1_2 Id
46// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
47// that contain PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
48//
49// Rx Errored Fragments
50// Rx errored fragments: Clause 45.2.3.29 of [IEEE 802.3]. (R) (mandatory) (4 bytes)
51//
52// Rx Small Fragments
53// Rx small fragments: Clause 45.2.3.30 of [IEEE 802.3]. (R) (mandatory) (4 bytes)
54//
55// Rx Large Fragments
56// Rx large fragments: Clause 45.2.3.31 of [IEEE 802.3]. (R) (mandatory) (4 bytes)
57//
58// Rx Discarded Fragments
59// Rx discarded fragments: Clause 45.2.3.32 of [IEEE 802.3]. (R) (mandatory) (4 bytes)
60//
61// Rx Fcs Errors
62// Rx FCS errors: Clause 45.2.6.11 of [IEEE 802.3]. (R) (mandatory) (4 bytes)
63//
64// Rx Coding Errors
65// Rx coding errors: Clause 45.2.6.12 of [IEEE 802.3]. (R) (mandatory) (4 bytes)
66//
67// Rx Fragments
68// Rx fragments: Number of fragments received over this link. (R) (mandatory) (4 bytes)
69//
70// Tx Fragments
71// Tx fragments: Number of fragments transmitted over this link. (R) (mandatory) (4 bytes)
72//
73type EfmBondingLinkPerformanceMonitoringHistoryData struct {
74 ManagedEntityDefinition
75 Attributes AttributeValueMap
76}
77
78func init() {
79 efmbondinglinkperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
80 Name: "EfmBondingLinkPerformanceMonitoringHistoryData",
81 ClassID: 423,
82 MessageTypes: mapset.NewSetWith(
83 Create,
84 Delete,
85 Get,
86 Set,
87 ),
88 AllowedAttributeMask: 0XFFC0,
89 AttributeDefinitions: AttributeDefinitionMap{
90 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
91 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
92 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
93 3: Uint32Field("RxErroredFragments", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
94 4: Uint32Field("RxSmallFragments", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
95 5: Uint32Field("RxLargeFragments", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
96 6: Uint32Field("RxDiscardedFragments", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
97 7: Uint32Field("RxFcsErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
98 8: Uint32Field("RxCodingErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
99 9: Uint32Field("RxFragments", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
100 10: Uint32Field("TxFragments", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
101 },
102 }
103}
104
105// NewEfmBondingLinkPerformanceMonitoringHistoryData (class ID 423 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 NewEfmBondingLinkPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
109 return NewManagedEntity(efmbondinglinkperformancemonitoringhistorydataBME, params...)
110}