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 | // GemInterworkingTerminationPointClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity GEM interworking termination point |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const GemInterworkingTerminationPointClassID = ClassID(266) // 0x010a |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var geminterworkingterminationpointBME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // GemInterworkingTerminationPoint (Class ID: #266 / 0x010a) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // An instance of this ME represents a point in the ONU where the IW of a bearer service (usually |
| 36 | // Ethernet) to the GEM layer takes place. At this point, GEM packets are generated from the bearer |
| 37 | // bit stream (e.g., Ethernet) or the bearer bit stream is reconstructed from GEM packets. |
| 38 | // |
| 39 | // Instances of this ME are created and deleted by the OLT. |
| 40 | // |
| 41 | // Relationships |
| 42 | // One instance of this ME exists for each transformation of a data stream into GEM frames and vice |
| 43 | // versa. |
| 44 | // |
| 45 | // Attributes |
| 46 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 47 | // This attribute uniquely identifies each instance of this ME. (R, setbycreate) (mandatory) |
| 48 | // (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 49 | // |
| 50 | // Gem Port Network Ctp Connectivity Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 51 | // This attribute points to an instance of the GEM port network CTP. (R,-W, setbycreate) |
| 52 | // (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 53 | // |
| 54 | // Interworking Option |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 55 | // This attribute identifies the type of non-GEM function that is being interworked. The options |
| 56 | // are as follows. |
| 57 | // |
| 58 | // 0 Circuit-emulated TDM |
| 59 | // |
| 60 | // 1 MAC bridged LAN |
| 61 | // |
| 62 | // 2 Reserved |
| 63 | // |
| 64 | // 3 Reserved |
| 65 | // |
| 66 | // 4 Video return path |
| 67 | // |
| 68 | // 5 IEEE 802.1p mapper |
| 69 | // |
| 70 | // 6 Downstream broadcast |
| 71 | // |
| 72 | // 7 MPLS PW TDM service |
| 73 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 74 | // (R,-W, setbycreate) (mandatory) (1-byte) |
| 75 | // |
| 76 | // Service Profile Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 77 | // This attribute points to an instance of a service profile: |
| 78 | // |
| 79 | // CES service profile if IW option-=-0 |
| 80 | // |
| 81 | // MAC bridge service profile if IW option-=-1 |
| 82 | // |
| 83 | // Video return path service profile if IW option-=-4 |
| 84 | // |
| 85 | // IEEE 802.1p mapper service profile if IW option-=-5 |
| 86 | // |
| 87 | // Null pointer if IW option-=-6 |
| 88 | // |
| 89 | // CES service profile if IW option-=-7 |
| 90 | // |
| 91 | // (R,-W, setbycreate) (mandatory) (2-bytes) |
| 92 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 93 | // NOTE - The video return path (VRP) service profile is defined in [ITU-T G.984.4]. |
| 94 | // |
| 95 | // Interworking Termination Point Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 96 | // This attribute is used for the CES and IEEE 802.1p mapper service without a MAC bridge. |
| 97 | // Depending on the service provided, it points to the associated instance of the following MEs: |
| 98 | // |
| 99 | // PPTP CES UNI |
| 100 | // |
| 101 | // Logical N * 64 kbit/s sub-port CTP |
| 102 | // |
| 103 | // PPTP Ethernet UNI |
| 104 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 105 | // In all other GEM services, the relationship between the related service TP and this GEM IW TP is |
| 106 | // derived from other ME relations; this attribute is set to a null pointer and not used. (R,-W, |
| 107 | // setbycreate) (mandatory) (2-bytes) |
| 108 | // |
| 109 | // Pptp Counter |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 110 | // This value reports the number of PPTP ME instances associated with this GEM IW TP. (R) |
| 111 | // (optional) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 112 | // |
| 113 | // Operational State |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 114 | // This attribute indicates whether the ME is capable of performing its function. Valid values are |
| 115 | // enabled (0) and disabled (1). (R) (optional) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 116 | // |
| 117 | // Gal Profile Pointer |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 118 | // 5 GAL Ethernet profile for IEEE 802.1p mapper |
| 119 | // |
| 120 | // 6 Null pointer |
| 121 | // |
| 122 | // 7 Null pointer |
| 123 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 124 | // (R,-W, setbycreate) (mandatory) (2-bytes) |
| 125 | // |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 126 | // This attribute points to an instance of the GAL profile. The relationship between the IW option |
| 127 | // and the related GAL profile is as follows. |
| 128 | // |
| 129 | // Interworking option GAL profile type |
| 130 | // |
| 131 | // 0 Null pointer |
| 132 | // |
| 133 | // 1 GAL Ethernet profile |
| 134 | // |
| 135 | // 3 GAL Ethernet profile for data service |
| 136 | // |
| 137 | // 4 GAL Ethernet profile for video return path |
| 138 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 139 | // Gal Loopback Configuration |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 140 | // This attribute sets the loopback configuration when using GEM mode: |
| 141 | // |
| 142 | // 0 No loopback |
| 143 | // |
| 144 | // 1 Loopback of downstream traffic after GAL |
| 145 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 146 | // The default value of this attribute is 0. When the IW option is 6 (downstream broadcast), this |
| 147 | // attribute is not used. (R,-W) (mandatory) (1-byte) |
| 148 | // |
| 149 | type GemInterworkingTerminationPoint struct { |
| 150 | ManagedEntityDefinition |
| 151 | Attributes AttributeValueMap |
| 152 | } |
| 153 | |
| 154 | func init() { |
| 155 | geminterworkingterminationpointBME = &ManagedEntityDefinition{ |
| 156 | Name: "GemInterworkingTerminationPoint", |
| 157 | ClassID: 266, |
| 158 | MessageTypes: mapset.NewSetWith( |
| 159 | Create, |
| 160 | Delete, |
| 161 | Get, |
| 162 | Set, |
| 163 | ), |
| 164 | AllowedAttributeMask: 0xff00, |
| 165 | AttributeDefinitions: AttributeDefinitionMap{ |
| 166 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 167 | 1: Uint16Field("GemPortNetworkCtpConnectivityPointer", PointerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 168 | 2: ByteField("InterworkingOption", EnumerationAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 169 | 3: Uint16Field("ServiceProfilePointer", PointerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3), |
| 170 | 4: Uint16Field("InterworkingTerminationPointPointer", PointerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4), |
| 171 | 5: ByteField("PptpCounter", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5), |
| 172 | 6: ByteField("OperationalState", EnumerationAttributeType, 0x0400, 0, mapset.NewSetWith(Read), true, true, false, 6), |
| 173 | 7: Uint16Field("GalProfilePointer", PointerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 7), |
| 174 | 8: ByteField("GalLoopbackConfiguration", EnumerationAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8), |
| 175 | }, |
| 176 | Access: CreatedByOlt, |
| 177 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 178 | Alarms: AlarmMap{ |
| 179 | 0: "Deprecated", |
| 180 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 181 | } |
| 182 | } |
| 183 | |
| 184 | // NewGemInterworkingTerminationPoint (class ID 266) creates the basic |
| 185 | // Managed Entity definition that is used to validate an ME of this type that |
| 186 | // is received from or transmitted to the OMCC. |
| 187 | func NewGemInterworkingTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 188 | return NewManagedEntity(*geminterworkingterminationpointBME, params...) |
| 189 | } |