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