blob: 041d24b281d4e77bbefc8c445ee4ab279000abea [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// EfmBondingPortPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity EFM bonding port performance monitoring history data
27const EfmBondingPortPerformanceMonitoringHistoryDataClassID ClassID = ClassID(424)
28
29var efmbondingportperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// EfmBondingPortPerformanceMonitoringHistoryData (class ID #424)
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. The two MSBs of
41// the first byte are the bearer channel ID. Excluding the first 2-bits of the first byte, the
42// remaining part of the ME ID is identical to that of this ME's parent PPTP xDSL UNI part 1. (R,
43// setbycreate) (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 and 2 MEs
51// that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
52//
53// Rx Frames
54// Rx frames: Number of Ethernet frames received over this port. (R) (mandatory) (4-bytes)
55//
56// Tx Frames
57// Tx frames: Number of Ethernet frames transmitted over this port. (R) (mandatory) (4-bytes)
58//
59// Rx Bytes
60// Rx bytes: Number of bytes contained in the Ethernet frames received over this port. (R)
61// (mandatory) (4-bytes)
62//
63// Tx Bytes
64// Tx bytes: Number of bytes contained in the Ethernet frames transmitted over this port. (R)
65// (mandatory) (4-bytes)
66//
67// Tx Discarded Frames
68// Tx discarded frames: Number of Ethernet frames discarded by the port transmit function. (R)
69// (mandatory) (4-bytes)
70//
71// Tx Discarded Bytes
72// Tx discarded bytes: Number of bytes contained in the Ethernet frames discarded by the port
73// transmit function. (R) (mandatory) (4-bytes)
74//
75type EfmBondingPortPerformanceMonitoringHistoryData struct {
76 ManagedEntityDefinition
77 Attributes AttributeValueMap
78}
79
80func init() {
81 efmbondingportperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
82 Name: "EfmBondingPortPerformanceMonitoringHistoryData",
83 ClassID: 424,
84 MessageTypes: mapset.NewSetWith(
85 Create,
86 Delete,
87 Get,
88 Set,
89 ),
90 AllowedAttributeMask: 0xff00,
91 AttributeDefinitions: AttributeDefinitionMap{
92 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
93 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
94 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
95 3: Uint32Field("RxFrames", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
96 4: Uint32Field("TxFrames", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
97 5: Uint32Field("RxBytes", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
98 6: Uint32Field("TxBytes", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
99 7: Uint32Field("TxDiscardedFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
100 8: Uint32Field("TxDiscardedBytes", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
101 },
102 Access: CreatedByOlt,
103 Support: UnknownSupport,
104 }
105}
106
107// NewEfmBondingPortPerformanceMonitoringHistoryData (class ID 424) creates the basic
108// Managed Entity definition that is used to validate an ME of this type that
109// is received from or transmitted to the OMCC.
110func NewEfmBondingPortPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
111 return NewManagedEntity(*efmbondingportperformancemonitoringhistorydataBME, params...)
112}