Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * NOTE: This file was generated, manual edits will be overwritten! |
| 19 | * |
| 20 | * Generated by 'goCodeGenerator.py': |
| 21 | * https://github.com/cboling/OMCI-parser/README.md |
| 22 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // XdslXtuCPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL xTU-C performance monitoring history data part 2 |
| 30 | const XdslXtuCPerformanceMonitoringHistoryDataPart2ClassID ClassID = ClassID(408) |
| 31 | |
| 32 | var xdslxtucperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition |
| 33 | |
| 34 | // XdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID #408) |
| 35 | // This ME collects PM data on the xTUC to xTUR path as seen from the xTU-C. Instances of this ME |
| 36 | // are created and deleted by the OLT. |
| 37 | // |
| 38 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 39 | // |
| 40 | // Relationships |
| 41 | // An instance of this ME is associated with an xDSL UNI. |
| 42 | // |
| 43 | // Attributes |
| 44 | // Managed Entity Id |
| 45 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 46 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, |
| 47 | // setbycreate) (mandatory) (2-bytes) |
| 48 | // |
| 49 | // Interval End Time |
| 50 | // Interval end time: This attribute identifies the most recently finished 15-min interval. (R) |
| 51 | // (mandatory) (1-byte) |
| 52 | // |
| 53 | // Threshold Data 1_2 Id |
| 54 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs |
| 55 | // that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 56 | // |
| 57 | // Leftr Defect Seconds |
| 58 | // "leftr" defect seconds: If retransmission is used, this attribute is a count of the seconds with |
| 59 | // a near-end ''leftr'' defect present - see clause 7.2.1.1.6 of [ITU-T G.997.1]. (R) (mandatory) |
| 60 | // (2-bytes) |
| 61 | // |
| 62 | // Error_Free Bits Counter |
| 63 | // Error-free bits counter: If retransmission is used, this attribute is a count of the number of |
| 64 | // error-free bits passed over the B1 reference point, divided by 216 - see clause-7.2.1.1.7 of |
| 65 | // [ITU-T G.997.1]. (R) (mandatory) (4-bytes) |
| 66 | // |
| 67 | // Minimum Error_Free Throughput Mineftr |
| 68 | // Minimum error-free throughput (MINEFTR): If retransmission is used, this attribute is the |
| 69 | // minimum error-free throughput in bits per second - see clause 7.2.1.1.8 of [ITUT-G.997.1]. (R) |
| 70 | // (mandatory) (4-bytes) |
| 71 | // |
| 72 | type XdslXtuCPerformanceMonitoringHistoryDataPart2 struct { |
| 73 | ManagedEntityDefinition |
| 74 | Attributes AttributeValueMap |
| 75 | } |
| 76 | |
| 77 | func init() { |
| 78 | xdslxtucperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{ |
| 79 | Name: "XdslXtuCPerformanceMonitoringHistoryDataPart2", |
| 80 | ClassID: 408, |
| 81 | MessageTypes: mapset.NewSetWith( |
| 82 | Create, |
| 83 | Delete, |
| 84 | Get, |
| 85 | Set, |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 86 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 87 | ), |
| 88 | AllowedAttributeMask: 0xf800, |
| 89 | AttributeDefinitions: AttributeDefinitionMap{ |
| 90 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 91 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 92 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 93 | 3: Uint16Field("LeftrDefectSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 94 | 4: Uint32Field("ErrorFreeBitsCounter", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 95 | 5: Uint32Field("MinimumErrorFreeThroughputMineftr", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 96 | }, |
| 97 | Access: CreatedByOlt, |
| 98 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 99 | Alarms: AlarmMap{ |
| 100 | 0: "leftr defect seconds", |
| 101 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 102 | } |
| 103 | } |
| 104 | |
| 105 | // NewXdslXtuCPerformanceMonitoringHistoryDataPart2 (class ID 408) creates the basic |
| 106 | // Managed Entity definition that is used to validate an ME of this type that |
| 107 | // is received from or transmitted to the OMCC. |
| 108 | func NewXdslXtuCPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 109 | return NewManagedEntity(*xdslxtucperformancemonitoringhistorydatapart2BME, params...) |
| 110 | } |