blob: db27f386a5b3c0f4df1549e77f3ef1e1c0f15403 [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// InterworkingVccTerminationPointClassID is the 16-bit ID for the OMCI
29// Managed entity Interworking VCC termination point
mpagenko836a1fd2021-11-01 16:12:42 +000030const InterworkingVccTerminationPointClassID = ClassID(14) // 0x000e
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var interworkingvccterminationpointBME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// InterworkingVccTerminationPoint (Class ID: #14 / 0x000e)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// An instance of this ME represents a point in the ONU where the IW of a service or underlying
36// physical infrastructure (e.g., ADSL) to an ATM layer takes place. At this point, ATM cells are
37// generated from a bit stream (e.g., Ethernet) or a bit stream is reconstructed from ATM cells.
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 occurrence of transformation of a data stream into ATM
43// cells and vice 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// Vci Value
mpagenko836a1fd2021-11-01 16:12:42 +000051// This attribute identifies the VCI value associated with this IW VCC TP. (R,-W, setbycreate)
52// (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000053//
54// Vp Network Ctp Connectivity Pointer
mpagenko836a1fd2021-11-01 16:12:42 +000055// This attribute points to the VP network CTP associated with this IW VCC TP. (R,-W, setbycreate)
56// (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000057//
58// Deprecated 1
mpagenko836a1fd2021-11-01 16:12:42 +000059// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000060//
61// Deprecated 2
mpagenko836a1fd2021-11-01 16:12:42 +000062// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000063//
64// Aal5 Profile Pointer
mpagenko836a1fd2021-11-01 16:12:42 +000065// This attribute points to an instance of the AAL5 profile. (R,-W, setbycreate) (mandatory)
66// (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000067//
68// Deprecated 3
mpagenko836a1fd2021-11-01 16:12:42 +000069// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000070//
71// Aal Loopback Configuration
mpagenko836a1fd2021-11-01 16:12:42 +000072// This attribute sets the ATM loopback configuration. All code points are retained for backward
73// compatibility, but some are not expected to be needed in current and future applications.
74//
75// 0 No loopback
76//
77// 1 Loopback 1, loopback of downstream traffic before FEC of AAL1
78//
79// 2 Loopback 2, loopback of downstream traffic after FEC of AAL1
80//
81// 3 Loopback after AAL, loopback of downstream traffic after any AAL. Loopback after AAL is
82// depicted in Figure 9.13.4-1.
83//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000084// The default value of this attribute is 0. (R,-W) (mandatory) (1-byte)
85//
86// Pptp Counter
mpagenko836a1fd2021-11-01 16:12:42 +000087// This value is the number of instances of PPTP MEs associated with this instance of the IW VCC
88// TP. (R) (optional) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000089//
90// Operational State
mpagenko836a1fd2021-11-01 16:12:42 +000091// This attribute indicates whether the ME is capable of performing its function. Valid values are
92// enabled (0) and disabled (1). (R) (optional) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000093//
94type InterworkingVccTerminationPoint struct {
95 ManagedEntityDefinition
96 Attributes AttributeValueMap
97}
98
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000099// Attribute name constants
100
101const InterworkingVccTerminationPoint_VciValue = "VciValue"
102const InterworkingVccTerminationPoint_VpNetworkCtpConnectivityPointer = "VpNetworkCtpConnectivityPointer"
103const InterworkingVccTerminationPoint_Deprecated1 = "Deprecated1"
104const InterworkingVccTerminationPoint_Deprecated2 = "Deprecated2"
105const InterworkingVccTerminationPoint_Aal5ProfilePointer = "Aal5ProfilePointer"
106const InterworkingVccTerminationPoint_Deprecated3 = "Deprecated3"
107const InterworkingVccTerminationPoint_AalLoopbackConfiguration = "AalLoopbackConfiguration"
108const InterworkingVccTerminationPoint_PptpCounter = "PptpCounter"
109const InterworkingVccTerminationPoint_OperationalState = "OperationalState"
110
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000111func init() {
112 interworkingvccterminationpointBME = &ManagedEntityDefinition{
113 Name: "InterworkingVccTerminationPoint",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000114 ClassID: InterworkingVccTerminationPointClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000115 MessageTypes: mapset.NewSetWith(
116 Create,
117 Delete,
118 Get,
119 Set,
120 ),
121 AllowedAttributeMask: 0xff80,
122 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000123 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
124 1: Uint16Field(InterworkingVccTerminationPoint_VciValue, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
125 2: Uint16Field(InterworkingVccTerminationPoint_VpNetworkCtpConnectivityPointer, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
126 3: ByteField(InterworkingVccTerminationPoint_Deprecated1, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 3),
127 4: Uint16Field(InterworkingVccTerminationPoint_Deprecated2, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 4),
128 5: Uint16Field(InterworkingVccTerminationPoint_Aal5ProfilePointer, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5),
129 6: Uint16Field(InterworkingVccTerminationPoint_Deprecated3, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 6),
130 7: ByteField(InterworkingVccTerminationPoint_AalLoopbackConfiguration, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
131 8: ByteField(InterworkingVccTerminationPoint_PptpCounter, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
132 9: ByteField(InterworkingVccTerminationPoint_OperationalState, UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), true, true, false, 9),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000133 },
134 Access: CreatedByOlt,
135 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530136 Alarms: AlarmMap{
137 0: "End-to-end VC AIS layer management indication receiving (LMIR)",
138 1: "End-to-end VC RDI LMIR",
139 2: "End-to-end VC AIS layer management indication generation (LMIG)",
140 3: "End-to-end VC RDI LMIG",
141 4: "Segment loss of continuity",
142 5: "End-to-end loss of continuity",
143 6: "CSA",
144 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000145 }
146}
147
148// NewInterworkingVccTerminationPoint (class ID 14) creates the basic
149// Managed Entity definition that is used to validate an ME of this type that
150// is received from or transmitted to the OMCC.
151func NewInterworkingVccTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
152 return NewManagedEntity(*interworkingvccterminationpointBME, params...)
153}