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 FastXtuRPerformanceMonitoringHistoryDataClassId ClassID = ClassID(438) |
| 25 | |
| 26 | var fastxturperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 27 | |
| 28 | // FastXtuRPerformanceMonitoringHistoryData (class ID #438) |
| 29 | // This ME collects PM data of the xTU C to xTU R path as seen from the xTU-R. Instances of this ME |
| 30 | // are created and deleted by the OLT. For a complete discussion of generic PM architecture, refer |
| 31 | // to clause I.4. |
| 32 | // |
| 33 | // Relationships |
| 34 | // An instance of this ME is associated with an xDSL UNI. |
| 35 | // |
| 36 | // Attributes |
| 37 | // Managed Entity Id |
| 38 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 39 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, set- |
| 40 | // by-create) (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, set-by-create) (mandatory) (2 bytes) |
| 49 | // |
| 50 | // Successful Fra Counter |
| 51 | // Successful FRA counter: This attribute counts the successful FRA primitives (success_FRA). The |
| 52 | // successful FRA primitive (success_FRA) is defined in clause 11.3.1.6 of [ITU-T G.9701]. See |
| 53 | // clause 7.7.22 of [ITU-T G.997.2] (R) (mandatory) (4 bytes) |
| 54 | // |
| 55 | // Successful Rpa Counter |
| 56 | // Successful RPA counter: This attribute counts the successful RPA primitives (success_RPA). The |
| 57 | // successful RPA primitive (success_RPA) is defined in clause 11.3.1.6 of [ITU-T G.9701]. See |
| 58 | // clause 7.7.23 of [ITU-T G.997.2] (R) (optional) (4 bytes) |
| 59 | // |
| 60 | type FastXtuRPerformanceMonitoringHistoryData struct { |
| 61 | ManagedEntityDefinition |
| 62 | Attributes AttributeValueMap |
| 63 | } |
| 64 | |
| 65 | func init() { |
| 66 | fastxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 67 | Name: "FastXtuRPerformanceMonitoringHistoryData", |
| 68 | ClassID: 438, |
| 69 | MessageTypes: mapset.NewSetWith( |
| 70 | Create, |
| 71 | Delete, |
| 72 | Get, |
| 73 | Set, |
| 74 | ), |
| 75 | AllowedAttributeMask: 0XF000, |
| 76 | AttributeDefinitions: AttributeDefinitionMap{ |
| 77 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 78 | 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1), |
| 79 | 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2), |
| 80 | 3: Uint32Field("SuccessfulFraCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 3), |
| 81 | 4: Uint32Field("SuccessfulRpaCounter", 0, mapset.NewSetWith(Read), false, false, true, false, 4), |
| 82 | }, |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // NewFastXtuRPerformanceMonitoringHistoryData (class ID 438 creates the basic |
| 87 | // Managed Entity definition that is used to validate an ME of this type that |
| 88 | // is received from the wire, about to be sent on the wire. |
| 89 | func NewFastXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 90 | return NewManagedEntity(fastxturperformancemonitoringhistorydataBME, params...) |
| 91 | } |