Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [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 | |
| 21 | package generated |
| 22 | |
| 23 | import "github.com/deckarep/golang-set" |
| 24 | |
| 25 | // EfmBondingPortPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI |
| 26 | // Managed entity EFM bonding port performance monitoring history data part 2 |
| 27 | const EfmBondingPortPerformanceMonitoringHistoryDataPart2ClassID ClassID = ClassID(425) |
| 28 | |
| 29 | var efmbondingportperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition |
| 30 | |
| 31 | // EfmBondingPortPerformanceMonitoringHistoryDataPart2 (class ID #425) |
| 32 | // This ME collects PM data as seen at the xTU-C. Instances of this ME are created and deleted by |
| 33 | // the OLT. |
| 34 | // |
| 35 | // Relationships |
| 36 | // An instance of this ME is associated with an xDSL UNI. |
| 37 | // |
| 38 | // Attributes |
| 39 | // Managed Entity Id |
| 40 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. The two MSBs of |
| 41 | // the first byte are the bearer channel ID. Excluding the first 2-bits of the first byte, the |
| 42 | // remaining part of the ME ID is identical to that of this ME's parent PPTP xDSL UNI part 1. (R, |
| 43 | // setbycreate) (mandatory) (2-bytes) |
| 44 | // |
| 45 | // Interval End Time |
| 46 | // Interval end time: This attribute identifies the most recently finished 15-min interval. (R) |
| 47 | // (mandatory) (1-byte) |
| 48 | // |
| 49 | // Threshold Data 1_2 Id |
| 50 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs |
| 51 | // that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 52 | // |
| 53 | // Rx Unicast Frames |
| 54 | // Rx unicast frames: Number of unicast Ethernet frames received over this port. (R) (mandatory) |
| 55 | // (4-bytes) |
| 56 | // |
| 57 | // Tx Unicast Frames |
| 58 | // Tx unicast frames: Number of unicast Ethernet frames transmitted over this port. (R) (mandatory) |
| 59 | // (4-bytes) |
| 60 | // |
| 61 | // Rx Unicast Bytes |
| 62 | // Rx unicast bytes: Number of bytes contained in the unicast Ethernet frames received over this |
| 63 | // port. (R) (mandatory) (4-bytes) |
| 64 | // |
| 65 | // Tx Unicast Bytes |
| 66 | // Tx unicast bytes: Number of bytes contained in the unicast Ethernet frames transmitted over this |
| 67 | // port. (R) (mandatory) (4-bytes) |
| 68 | // |
| 69 | // Rx Broadcast Frames |
| 70 | // Rx broadcast frames: Number of broadcast Ethernet frames received over this port. (R) |
| 71 | // (mandatory) (4-bytes) |
| 72 | // |
| 73 | // Tx Broadcast Frames |
| 74 | // Tx broadcast frames: Number of broadcast Ethernet frames transmitted over this port. (R) |
| 75 | // (mandatory) (4-bytes) |
| 76 | // |
| 77 | // Rx Broadcast Bytes |
| 78 | // Rx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames received over |
| 79 | // this port. (R) (mandatory) (4-bytes) |
| 80 | // |
| 81 | // Tx Broadcast Bytes |
| 82 | // Tx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames transmitted over |
| 83 | // this port. (R) (mandatory) (4-bytes) |
| 84 | // |
| 85 | // Rx Multicast Frames |
| 86 | // Rx multicast frames: Number of multicast Ethernet frames received over this port. (R) |
| 87 | // (mandatory) (4-bytes) |
| 88 | // |
| 89 | // Tx Multicast Frames |
| 90 | // Tx multicast frames: Number of multicast Ethernet frames transmitted over this port. (R) |
| 91 | // (mandatory) (4-bytes) |
| 92 | // |
| 93 | // Rx Multicast Bytes |
| 94 | // Rx multicast bytes: Number of bytes contained in the multicast Ethernet frames received over |
| 95 | // this port. (R) (mandatory) (4-bytes) |
| 96 | // |
| 97 | // Tx Multicast Bytes |
| 98 | // Tx multicast bytes: Number of bytes contained in the multicast Ethernet frames transmitted over |
| 99 | // this port. (R) (mandatory) (4-bytes) |
| 100 | // |
| 101 | type EfmBondingPortPerformanceMonitoringHistoryDataPart2 struct { |
| 102 | ManagedEntityDefinition |
| 103 | Attributes AttributeValueMap |
| 104 | } |
| 105 | |
| 106 | func init() { |
| 107 | efmbondingportperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{ |
| 108 | Name: "EfmBondingPortPerformanceMonitoringHistoryDataPart2", |
| 109 | ClassID: 425, |
| 110 | MessageTypes: mapset.NewSetWith( |
| 111 | Create, |
| 112 | Delete, |
| 113 | Get, |
| 114 | Set, |
| 115 | ), |
| 116 | AllowedAttributeMask: 0xfffc, |
| 117 | AttributeDefinitions: AttributeDefinitionMap{ |
| 118 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 119 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 120 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 121 | 3: Uint32Field("RxUnicastFrames", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 122 | 4: Uint32Field("TxUnicastFrames", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 123 | 5: Uint32Field("RxUnicastBytes", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 124 | 6: Uint32Field("TxUnicastBytes", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 125 | 7: Uint32Field("RxBroadcastFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 126 | 8: Uint32Field("TxBroadcastFrames", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 127 | 9: Uint32Field("RxBroadcastBytes", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 128 | 10: Uint32Field("TxBroadcastBytes", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 129 | 11: Uint32Field("RxMulticastFrames", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11), |
| 130 | 12: Uint32Field("TxMulticastFrames", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12), |
| 131 | 13: Uint32Field("RxMulticastBytes", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13), |
| 132 | 14: Uint32Field("TxMulticastBytes", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14), |
| 133 | }, |
| 134 | Access: CreatedByOlt, |
| 135 | Support: UnknownSupport, |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // NewEfmBondingPortPerformanceMonitoringHistoryDataPart2 (class ID 425) creates the basic |
| 140 | // Managed Entity definition that is used to validate an ME of this type that |
| 141 | // is received from or transmitted to the OMCC. |
| 142 | func NewEfmBondingPortPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 143 | return NewManagedEntity(*efmbondingportperformancemonitoringhistorydatapart2BME, params...) |
| 144 | } |