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 | // MocaEthernetPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity MoCA Ethernet performance monitoring history data |
| 30 | const MocaEthernetPerformanceMonitoringHistoryDataClassID ClassID = ClassID(163) |
| 31 | |
| 32 | var mocaethernetperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 33 | |
| 34 | // MocaEthernetPerformanceMonitoringHistoryData (class ID #163) |
| 35 | // This ME collects PM data for an MoCA Ethernet interface. Instances of this ME are created and |
| 36 | // 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 instance of the PPTP MoCA UNI ME. |
| 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 MoCA UNI. (R, setbycreate) |
| 47 | // (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 contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 56 | // |
| 57 | // Incoming Unicast Packets |
| 58 | // Incoming unicast packets: (R) (optional) (4-bytes) |
| 59 | // |
| 60 | // Incoming Discarded Packets |
| 61 | // Incoming discarded packets: (R) (optional) (4-bytes) |
| 62 | // |
| 63 | // Incoming Errored Packets |
| 64 | // Incoming errored packets: (R) (optional) (4-bytes) |
| 65 | // |
| 66 | // Incoming Unknown Packets |
| 67 | // Incoming unknown packets: (R) (optional) (4-bytes) |
| 68 | // |
| 69 | // Incoming Multicast Packets |
| 70 | // Incoming multicast packets: (R) (optional) (4-bytes) |
| 71 | // |
| 72 | // Incoming Broadcast Packets |
| 73 | // Incoming broadcast packets: (R) (optional) (4-bytes) |
| 74 | // |
| 75 | // Incoming Octets |
| 76 | // Incoming octets: (R) (optional) (4-bytes) |
| 77 | // |
| 78 | // Outgoing Unicast Packets |
| 79 | // Outgoing unicast packets: (R) (optional) (4-bytes) |
| 80 | // |
| 81 | // Outgoing Discarded Packets |
| 82 | // Outgoing discarded packets: (R) (optional) (4-bytes) |
| 83 | // |
| 84 | // Outgoing Errored Packets |
| 85 | // Outgoing errored packets: (R) (optional) (4-bytes) |
| 86 | // |
| 87 | // Outgoing Unknown Packets |
| 88 | // Outgoing unknown packets: (R) (optional) (4-bytes) |
| 89 | // |
| 90 | // Outgoing Multicast Packets |
| 91 | // Outgoing multicast packets: (R) (optional) (4-bytes) |
| 92 | // |
| 93 | // Outgoing Broadcast Packets |
| 94 | // Outgoing broadcast packets: (R) (optional) (4-bytes) |
| 95 | // |
| 96 | // Outgoing Octets |
| 97 | // Outgoing octets: (R) (optional) (4-bytes) |
| 98 | // |
| 99 | type MocaEthernetPerformanceMonitoringHistoryData struct { |
| 100 | ManagedEntityDefinition |
| 101 | Attributes AttributeValueMap |
| 102 | } |
| 103 | |
| 104 | func init() { |
| 105 | mocaethernetperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 106 | Name: "MocaEthernetPerformanceMonitoringHistoryData", |
| 107 | ClassID: 163, |
| 108 | MessageTypes: mapset.NewSetWith( |
| 109 | Create, |
| 110 | Delete, |
| 111 | Get, |
| 112 | Set, |
| 113 | ), |
| 114 | AllowedAttributeMask: 0xffff, |
| 115 | AttributeDefinitions: AttributeDefinitionMap{ |
| 116 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 117 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 118 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 119 | 3: Uint32Field("IncomingUnicastPackets", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3), |
| 120 | 4: Uint32Field("IncomingDiscardedPackets", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4), |
| 121 | 5: Uint32Field("IncomingErroredPackets", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5), |
| 122 | 6: Uint32Field("IncomingUnknownPackets", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6), |
| 123 | 7: Uint32Field("IncomingMulticastPackets", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7), |
| 124 | 8: Uint32Field("IncomingBroadcastPackets", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8), |
| 125 | 9: Uint32Field("IncomingOctets", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9), |
| 126 | 10: Uint32Field("OutgoingUnicastPackets", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10), |
| 127 | 11: Uint32Field("OutgoingDiscardedPackets", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11), |
| 128 | 12: Uint32Field("OutgoingErroredPackets", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12), |
| 129 | 13: Uint32Field("OutgoingUnknownPackets", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13), |
| 130 | 14: Uint32Field("OutgoingMulticastPackets", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14), |
| 131 | 15: Uint32Field("OutgoingBroadcastPackets", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15), |
| 132 | 16: Uint32Field("OutgoingOctets", CounterAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, true, false, 16), |
| 133 | }, |
| 134 | Access: CreatedByOlt, |
| 135 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 136 | Alarms: AlarmMap{ |
| 137 | 0: "Incoming unicast packets", |
| 138 | 1: "Incoming discarded packets", |
| 139 | 2: "Incoming errored packets", |
| 140 | 3: "Incoming unknown packets", |
| 141 | 4: "Incoming multicast packets", |
| 142 | 5: "Incoming broadcast packets", |
| 143 | 6: "Incoming octets", |
| 144 | 7: "Outgoing unicast packets", |
| 145 | 8: "Outgoing discarded packets", |
| 146 | 9: "Outgoing errored packets", |
| 147 | 10: "Outgoing unknown packets", |
| 148 | 11: "Outgoing multicast packets", |
| 149 | 12: "Outgoing broadcast packets", |
| 150 | 13: "Outgoing octets", |
| 151 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 152 | } |
| 153 | } |
| 154 | |
| 155 | // NewMocaEthernetPerformanceMonitoringHistoryData (class ID 163) creates the basic |
| 156 | // Managed Entity definition that is used to validate an ME of this type that |
| 157 | // is received from or transmitted to the OMCC. |
| 158 | func NewMocaEthernetPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 159 | return NewManagedEntity(*mocaethernetperformancemonitoringhistorydataBME, params...) |
| 160 | } |