blob: c0c91428cc6c3ae273f8f9034e6c5628049b29ea [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * 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
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * 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 */
Himani Chawlaac1f5ad2021-02-04 21:21:54 +053017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * 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
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// GemInterworkingTerminationPointClassID is the 16-bit ID for the OMCI
29// Managed entity GEM interworking termination point
mpagenko836a1fd2021-11-01 16:12:42 +000030const GemInterworkingTerminationPointClassID = ClassID(266) // 0x010a
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var geminterworkingterminationpointBME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// GemInterworkingTerminationPoint (Class ID: #266 / 0x010a)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// 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
mpagenko836a1fd2021-11-01 16:12:42 +000047// This attribute uniquely identifies each instance of this ME. (R, setbycreate) (mandatory)
48// (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000049//
50// Gem Port Network Ctp Connectivity Pointer
mpagenko836a1fd2021-11-01 16:12:42 +000051// This attribute points to an instance of the GEM port network CTP. (R,-W, setbycreate)
52// (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000053//
54// Interworking Option
mpagenko836a1fd2021-11-01 16:12:42 +000055// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000074// (R,-W, setbycreate) (mandatory) (1-byte)
75//
76// Service Profile Pointer
mpagenko836a1fd2021-11-01 16:12:42 +000077// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000093// NOTE - The video return path (VRP) service profile is defined in [ITU-T G.984.4].
94//
95// Interworking Termination Point Pointer
mpagenko836a1fd2021-11-01 16:12:42 +000096// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000105// 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
mpagenko836a1fd2021-11-01 16:12:42 +0000110// This value reports the number of PPTP ME instances associated with this GEM IW TP. (R)
111// (optional) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000112//
113// Operational State
mpagenko836a1fd2021-11-01 16:12:42 +0000114// 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)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000116//
117// Gal Profile Pointer
mpagenko836a1fd2021-11-01 16:12:42 +0000118// 5 GAL Ethernet profile for IEEE 802.1p mapper
119//
120// 6 Null pointer
121//
122// 7 Null pointer
123//
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000124// (R,-W, setbycreate) (mandatory) (2-bytes)
125//
mpagenko836a1fd2021-11-01 16:12:42 +0000126// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000139// Gal Loopback Configuration
mpagenko836a1fd2021-11-01 16:12:42 +0000140// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000146// 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//
149type GemInterworkingTerminationPoint struct {
150 ManagedEntityDefinition
151 Attributes AttributeValueMap
152}
153
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000154// Attribute name constants
155
156const GemInterworkingTerminationPoint_GemPortNetworkCtpConnectivityPointer = "GemPortNetworkCtpConnectivityPointer"
157const GemInterworkingTerminationPoint_InterworkingOption = "InterworkingOption"
158const GemInterworkingTerminationPoint_ServiceProfilePointer = "ServiceProfilePointer"
159const GemInterworkingTerminationPoint_InterworkingTerminationPointPointer = "InterworkingTerminationPointPointer"
160const GemInterworkingTerminationPoint_PptpCounter = "PptpCounter"
161const GemInterworkingTerminationPoint_OperationalState = "OperationalState"
162const GemInterworkingTerminationPoint_GalProfilePointer = "GalProfilePointer"
163const GemInterworkingTerminationPoint_GalLoopbackConfiguration = "GalLoopbackConfiguration"
164
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000165func init() {
166 geminterworkingterminationpointBME = &ManagedEntityDefinition{
167 Name: "GemInterworkingTerminationPoint",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000168 ClassID: GemInterworkingTerminationPointClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000169 MessageTypes: mapset.NewSetWith(
170 Create,
171 Delete,
172 Get,
173 Set,
174 ),
175 AllowedAttributeMask: 0xff00,
176 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000177 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
178 1: Uint16Field(GemInterworkingTerminationPoint_GemPortNetworkCtpConnectivityPointer, PointerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
179 2: ByteField(GemInterworkingTerminationPoint_InterworkingOption, EnumerationAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
180 3: Uint16Field(GemInterworkingTerminationPoint_ServiceProfilePointer, PointerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
181 4: Uint16Field(GemInterworkingTerminationPoint_InterworkingTerminationPointPointer, PointerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
182 5: ByteField(GemInterworkingTerminationPoint_PptpCounter, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
183 6: ByteField(GemInterworkingTerminationPoint_OperationalState, EnumerationAttributeType, 0x0400, 0, mapset.NewSetWith(Read), true, true, false, 6),
184 7: Uint16Field(GemInterworkingTerminationPoint_GalProfilePointer, PointerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 7),
185 8: ByteField(GemInterworkingTerminationPoint_GalLoopbackConfiguration, EnumerationAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000186 },
187 Access: CreatedByOlt,
188 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530189 Alarms: AlarmMap{
190 0: "Deprecated",
191 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000192 }
193}
194
195// NewGemInterworkingTerminationPoint (class ID 266) creates the basic
196// Managed Entity definition that is used to validate an ME of this type that
197// is received from or transmitted to the OMCC.
198func NewGemInterworkingTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
199 return NewManagedEntity(*geminterworkingterminationpointBME, params...)
200}