blob: 6b6d613f4cd17f0c5d26c538d74fdaf1d35db1fc [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// TcAdaptorPerformanceMonitoringHistoryDataXdslClassID is the 16-bit ID for the OMCI
26// Managed entity TC adaptor performance monitoring history data xDSL
27const TcAdaptorPerformanceMonitoringHistoryDataXdslClassID ClassID = ClassID(116)
28
29var tcadaptorperformancemonitoringhistorydataxdslBME *ManagedEntityDefinition
30
31// TcAdaptorPerformanceMonitoringHistoryDataXdsl (class ID #116)
32// This ME collects PM data of an xTUC to xTUR ATM data path. Instances of this ME are created and
33// deleted by the OLT.
34//
35// For a complete discussion of generic PM architecture, refer to clause I.4.
36//
37// Relationships
38// An instance of this ME is associated with an xDSL UNI.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R)
44// (mandatory) (2-bytes)
45//
46// Interval End Time
47// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
48// (mandatory) (1-byte)
49//
50// Threshold Data 1_2 Id
51// Threshold data1/2 ID: This attribute points to an instance of the threshold data1 ME that
52// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
53// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
54//
55// Near_End Hec Violation Count
56// Near-end HEC violation count: This attribute counts near-end HEC anomalies in the ATM data path.
57// (R) (mandatory) (2-bytes)
58//
59// Near_End Delineated Total Cell Count Cd P
60// Near-end delineated total cell count (CDP): This attribute counts the total number of cells
61// passed through the cell delineation and HEC function process operating on the ATM data path
62// while in the SYNC state. (R) (mandatory) (4-bytes)
63//
64// Near_End User Total Cell Count Cu_P
65// Near-end user total cell count(CU-P): This attribute counts the total number of cells in the ATM
66// data path delivered at the V-C interface. (R) (mandatory) (4-bytes)
67//
68// Near_End Idle Cell Bit Error Count
69// Near-end idle cell bit error count: This attribute counts cells with bit errors in the ATM data
70// path idle payload received at the near end. (R) (mandatory) (2-bytes)
71//
72// Far_End Hec Violation Count
73// Far-end HEC violation count: This attribute counts far-end HEC anomalies in the ATM data path.
74// (R) (mandatory) (2-bytes)
75//
76// Far_End Delineated Total Cell Count Cd_Pfe
77// Far-end delineated total cell count (CD-PFE): This attribute counts the total number of cells
78// passed through the cell delineation process and HEC function operating on the ATM data path
79// while in the SYNC state. (R) (mandatory) (4-bytes)
80//
81// Far_End User Total Cell Count Cu_Pfe
82// Far-end user total cell count (CU-PFE): This attribute counts the total number of cells in the
83// ATM data path delivered at the T-R interface. (R) (mandatory) (4-bytes)
84//
85// Far_End Idle Cell Bit Error Count
86// Far-end idle cell bit error count: This attribute counts cells with bit errors in the ATM data
87// path idle payload received at the far end. (R) (mandatory) (2-bytes)
88//
89type TcAdaptorPerformanceMonitoringHistoryDataXdsl struct {
90 ManagedEntityDefinition
91 Attributes AttributeValueMap
92}
93
94func init() {
95 tcadaptorperformancemonitoringhistorydataxdslBME = &ManagedEntityDefinition{
96 Name: "TcAdaptorPerformanceMonitoringHistoryDataXdsl",
97 ClassID: 116,
98 MessageTypes: mapset.NewSetWith(
99 Create,
100 Delete,
101 Get,
102 Set,
103 ),
104 AllowedAttributeMask: 0xffc0,
105 AttributeDefinitions: AttributeDefinitionMap{
106 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
107 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
108 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
109 3: Uint16Field("NearEndHecViolationCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
110 4: Uint32Field("NearEndDelineatedTotalCellCountCdP", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
111 5: Uint32Field("NearEndUserTotalCellCountCuP", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
112 6: Uint16Field("NearEndIdleCellBitErrorCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
113 7: Uint16Field("FarEndHecViolationCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
114 8: Uint32Field("FarEndDelineatedTotalCellCountCdPfe", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
115 9: Uint32Field("FarEndUserTotalCellCountCuPfe", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
116 10: Uint16Field("FarEndIdleCellBitErrorCount", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
117 },
118 Access: CreatedByOlt,
119 Support: UnknownSupport,
120 }
121}
122
123// NewTcAdaptorPerformanceMonitoringHistoryDataXdsl (class ID 116) creates the basic
124// Managed Entity definition that is used to validate an ME of this type that
125// is received from or transmitted to the OMCC.
126func NewTcAdaptorPerformanceMonitoringHistoryDataXdsl(params ...ParamData) (*ManagedEntity, OmciErrors) {
127 return NewManagedEntity(*tcadaptorperformancemonitoringhistorydataxdslBME, params...)
128}