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 GemInterworkingTerminationPointClassId ClassID = ClassID(266) |
| 25 | |
| 26 | var geminterworkingterminationpointBME *ManagedEntityDefinition |
| 27 | |
| 28 | // GemInterworkingTerminationPoint (class ID #266) |
| 29 | // An instance of this ME represents a point in the ONU where the IW of a bearer service (usually |
| 30 | // Ethernet) to the GEM layer takes place. At this point, GEM packets are generated from the bearer |
| 31 | // bit stream (e.g., Ethernet) or the bearer bit stream is reconstructed from GEM packets. |
| 32 | // |
| 33 | // Instances of this ME are created and deleted by the OLT. |
| 34 | // |
| 35 | // Relationships |
| 36 | // One instance of this ME exists for each transformation of a data stream into GEM frames and vice |
| 37 | // versa. |
| 38 | // |
| 39 | // Attributes |
| 40 | // Managed Entity Id |
| 41 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate) |
| 42 | // (mandatory) (2 bytes) |
| 43 | // |
| 44 | // Gem Port Network Ctp Connectivity Pointer |
| 45 | // GEM port network CTP connectivity pointer: This attribute points to an instance of the GEM port |
| 46 | // network CTP. (R, W, setbycreate) (mandatory) (2 bytes) |
| 47 | // |
| 48 | // Interworking Option |
| 49 | // (R, W, setbycreate) (mandatory) (1 byte) |
| 50 | // |
| 51 | // Service Profile Pointer |
| 52 | // NOTE – The video return path (VRP) service profile is defined in [ITU-T G.984.4]. |
| 53 | // |
| 54 | // Interworking Termination Point Pointer |
| 55 | // In all other GEM services, the relationship between the related service TP and this GEM IW TP is |
| 56 | // derived from other ME relations; this attribute is set to a null pointer and not used. (R, W, |
| 57 | // setbycreate) (mandatory) (2 bytes) |
| 58 | // |
| 59 | // Pptp Counter |
| 60 | // PPTP counter: This value reports the number of PPTP ME instances associated with this GEM IW TP. |
| 61 | // (R) (optional) (1 byte) |
| 62 | // |
| 63 | // Operational State |
| 64 | // Operational state: This attribute indicates whether the ME is capable of performing its |
| 65 | // function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte) |
| 66 | // |
| 67 | // Gal Profile Pointer |
| 68 | // (R, W, setbycreate) (mandatory) (2 bytes) |
| 69 | // |
| 70 | // Gal Loopback Configuration |
| 71 | // The default value of this attribute is 0. When the IW option is 6 (downstream broadcast), this |
| 72 | // attribute is not used. (R, W) (mandatory) (1 byte) |
| 73 | // |
| 74 | type GemInterworkingTerminationPoint struct { |
| 75 | ManagedEntityDefinition |
| 76 | Attributes AttributeValueMap |
| 77 | } |
| 78 | |
| 79 | func init() { |
| 80 | geminterworkingterminationpointBME = &ManagedEntityDefinition{ |
| 81 | Name: "GemInterworkingTerminationPoint", |
| 82 | ClassID: 266, |
| 83 | MessageTypes: mapset.NewSetWith( |
| 84 | Create, |
| 85 | Delete, |
| 86 | Get, |
| 87 | Set, |
| 88 | ), |
| 89 | AllowedAttributeMask: 0XFF00, |
| 90 | AttributeDefinitions: AttributeDefinitionMap{ |
| 91 | 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0), |
| 92 | 1: Uint16Field("GemPortNetworkCtpConnectivityPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1), |
| 93 | 2: ByteField("InterworkingOption", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2), |
| 94 | 3: Uint16Field("ServiceProfilePointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3), |
| 95 | 4: Uint16Field("InterworkingTerminationPointPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 4), |
| 96 | 5: ByteField("PptpCounter", 0, mapset.NewSetWith(Read), false, false, true, false, 5), |
| 97 | 6: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 6), |
| 98 | 7: Uint16Field("GalProfilePointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 7), |
| 99 | 8: ByteField("GalLoopbackConfiguration", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 8), |
| 100 | }, |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // NewGemInterworkingTerminationPoint (class ID 266 creates the basic |
| 105 | // Managed Entity definition that is used to validate an ME of this type that |
| 106 | // is received from the wire, about to be sent on the wire. |
| 107 | func NewGemInterworkingTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 108 | return NewManagedEntity(geminterworkingterminationpointBME, params...) |
| 109 | } |