blob: 0b1e18a6181e28a7d90d9adf8e3b5fa23f6b34a9 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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 Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 Boling34ebcb62021-02-02 12:13:58 -060017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
Chip Boling610117d2021-09-09 11:24:34 -050030const InterworkingVccTerminationPointClassID = ClassID(14) // 0x000e
Chip Boling6e27b352020-02-14 09:10:01 -060031
32var interworkingvccterminationpointBME *ManagedEntityDefinition
33
Chip Boling610117d2021-09-09 11:24:34 -050034// InterworkingVccTerminationPoint (Class ID: #14 / 0x000e)
Chip Boling6e27b352020-02-14 09:10:01 -060035// 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
Chip Boling610117d2021-09-09 11:24:34 -050047// This attribute uniquely identifies each instance of this ME. (R,-setbycreate) (mandatory)
48// (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060049//
50// Vci Value
Chip Boling610117d2021-09-09 11:24:34 -050051// This attribute identifies the VCI value associated with this IW VCC TP. (R,-W, setbycreate)
52// (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060053//
54// Vp Network Ctp Connectivity Pointer
Chip Boling610117d2021-09-09 11:24:34 -050055// This attribute points to the VP network CTP associated with this IW VCC TP. (R,-W, setbycreate)
56// (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060057//
58// Deprecated 1
Chip Boling610117d2021-09-09 11:24:34 -050059// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060060//
61// Deprecated 2
Chip Boling610117d2021-09-09 11:24:34 -050062// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060063//
64// Aal5 Profile Pointer
Chip Boling610117d2021-09-09 11:24:34 -050065// This attribute points to an instance of the AAL5 profile. (R,-W, setbycreate) (mandatory)
66// (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060067//
68// Deprecated 3
Chip Boling610117d2021-09-09 11:24:34 -050069// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060070//
71// Aal Loopback Configuration
Chip Boling610117d2021-09-09 11:24:34 -050072// 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//
Chip Boling6e27b352020-02-14 09:10:01 -060084// The default value of this attribute is 0. (R,-W) (mandatory) (1-byte)
85//
86// Pptp Counter
Chip Boling610117d2021-09-09 11:24:34 -050087// This value is the number of instances of PPTP MEs associated with this instance of the IW VCC
88// TP. (R) (optional) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060089//
90// Operational State
Chip Boling610117d2021-09-09 11:24:34 -050091// 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)
Chip Boling6e27b352020-02-14 09:10:01 -060093//
94type InterworkingVccTerminationPoint struct {
95 ManagedEntityDefinition
96 Attributes AttributeValueMap
97}
98
99func init() {
100 interworkingvccterminationpointBME = &ManagedEntityDefinition{
101 Name: "InterworkingVccTerminationPoint",
102 ClassID: 14,
103 MessageTypes: mapset.NewSetWith(
104 Create,
105 Delete,
106 Get,
107 Set,
108 ),
109 AllowedAttributeMask: 0xff80,
110 AttributeDefinitions: AttributeDefinitionMap{
111 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
112 1: Uint16Field("VciValue", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
113 2: Uint16Field("VpNetworkCtpConnectivityPointer", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
114 3: ByteField("Deprecated1", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 3),
115 4: Uint16Field("Deprecated2", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 4),
116 5: Uint16Field("Aal5ProfilePointer", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5),
117 6: Uint16Field("Deprecated3", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 6),
118 7: ByteField("AalLoopbackConfiguration", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
119 8: ByteField("PptpCounter", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
120 9: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), true, true, false, 9),
121 },
122 Access: CreatedByOlt,
123 Support: UnknownSupport,
Chip Boling34ebcb62021-02-02 12:13:58 -0600124 Alarms: AlarmMap{
125 0: "End-to-end VC AIS layer management indication receiving (LMIR)",
126 1: "End-to-end VC RDI LMIR",
127 2: "End-to-end VC AIS layer management indication generation (LMIG)",
128 3: "End-to-end VC RDI LMIG",
129 4: "Segment loss of continuity",
130 5: "End-to-end loss of continuity",
131 6: "CSA",
132 },
Chip Boling6e27b352020-02-14 09:10:01 -0600133 }
134}
135
136// NewInterworkingVccTerminationPoint (class ID 14) creates the basic
137// Managed Entity definition that is used to validate an ME of this type that
138// is received from or transmitted to the OMCC.
139func NewInterworkingVccTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
140 return NewManagedEntity(*interworkingvccterminationpointBME, params...)
141}