blob: a8572179e5ccccc7da98cd877da3f6281ead28bf [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 EfmBondingPortPerformanceMonitoringHistoryDataClassId ClassID = ClassID(424)
25
26var efmbondingportperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// EfmBondingPortPerformanceMonitoringHistoryData (class ID #424)
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. The two MSBs of
38// the first byte are the bearer channel ID. Excluding the first 2 bits of the first byte, the
39// remaining part of the ME ID is identical to that of this ME's parent PPTP xDSL UNI part 1. (R,
40// setbycreate) (mandatory) (2 bytes)
41//
42// Interval End Time
43// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
44// (mandatory) (1 byte)
45//
46// Threshold Data 1_2 Id
47// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
48// that contain PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
49//
50// Rx Frames
51// Rx frames: Number of Ethernet frames received over this port. (R) (mandatory) (4 bytes)
52//
53// Tx Frames
54// Tx frames: Number of Ethernet frames transmitted over this port. (R) (mandatory) (4 bytes)
55//
56// Rx Bytes
57// Rx bytes: Number of bytes contained in the Ethernet frames received over this port. (R)
58// (mandatory) (4 bytes)
59//
60// Tx Bytes
61// Tx bytes: Number of bytes contained in the Ethernet frames transmitted over this port. (R)
62// (mandatory) (4 bytes)
63//
64// Tx Discarded Frames
65// Tx discarded frames: Number of Ethernet frames discarded by the port transmit function. (R)
66// (mandatory) (4 bytes)
67//
68// Tx Discarded Bytes
69// Tx discarded bytes: Number of bytes contained in the Ethernet frames discarded by the port
70// transmit function. (R) (mandatory) (4 bytes)
71//
72type EfmBondingPortPerformanceMonitoringHistoryData struct {
73 ManagedEntityDefinition
74 Attributes AttributeValueMap
75}
76
77func init() {
78 efmbondingportperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
79 Name: "EfmBondingPortPerformanceMonitoringHistoryData",
80 ClassID: 424,
81 MessageTypes: mapset.NewSetWith(
82 Create,
83 Delete,
84 Get,
85 Set,
86 ),
87 AllowedAttributeMask: 0XFF00,
88 AttributeDefinitions: AttributeDefinitionMap{
89 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
90 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
91 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
92 3: Uint32Field("RxFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
93 4: Uint32Field("TxFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
94 5: Uint32Field("RxBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
95 6: Uint32Field("TxBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
96 7: Uint32Field("TxDiscardedFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
97 8: Uint32Field("TxDiscardedBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
98 },
99 }
100}
101
102// NewEfmBondingPortPerformanceMonitoringHistoryData (class ID 424 creates the basic
103// Managed Entity definition that is used to validate an ME of this type that
104// is received from the wire, about to be sent on the wire.
105func NewEfmBondingPortPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
106 return NewManagedEntity(efmbondingportperformancemonitoringhistorydataBME, params...)
107}