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