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