blob: 0b1e18a6181e28a7d90d9adf8e3b5fa23f6b34a9 [file] [log] [blame]
Matteo Scandolof9d43412021-01-12 11:11:34 -08001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
5 * 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
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * 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 */
17/*
18 * 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
Andrea Campanella10426e22021-10-15 17:58:04 +020030const InterworkingVccTerminationPointClassID = ClassID(14) // 0x000e
Matteo Scandolof9d43412021-01-12 11:11:34 -080031
32var interworkingvccterminationpointBME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// InterworkingVccTerminationPoint (Class ID: #14 / 0x000e)
Matteo Scandolof9d43412021-01-12 11:11:34 -080035// 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
Andrea Campanella10426e22021-10-15 17:58:04 +020047// This attribute uniquely identifies each instance of this ME. (R,-setbycreate) (mandatory)
48// (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080049//
50// Vci Value
Andrea Campanella10426e22021-10-15 17:58:04 +020051// This attribute identifies the VCI value associated with this IW VCC TP. (R,-W, setbycreate)
52// (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080053//
54// Vp Network Ctp Connectivity Pointer
Andrea Campanella10426e22021-10-15 17:58:04 +020055// This attribute points to the VP network CTP associated with this IW VCC TP. (R,-W, setbycreate)
56// (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080057//
58// Deprecated 1
Andrea Campanella10426e22021-10-15 17:58:04 +020059// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080060//
61// Deprecated 2
Andrea Campanella10426e22021-10-15 17:58:04 +020062// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080063//
64// Aal5 Profile Pointer
Andrea Campanella10426e22021-10-15 17:58:04 +020065// This attribute points to an instance of the AAL5 profile. (R,-W, setbycreate) (mandatory)
66// (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080067//
68// Deprecated 3
Andrea Campanella10426e22021-10-15 17:58:04 +020069// Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080070//
71// Aal Loopback Configuration
Andrea Campanella10426e22021-10-15 17:58:04 +020072// 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//
Matteo Scandolof9d43412021-01-12 11:11:34 -080084// The default value of this attribute is 0. (R,-W) (mandatory) (1-byte)
85//
86// Pptp Counter
Andrea Campanella10426e22021-10-15 17:58:04 +020087// This value is the number of instances of PPTP MEs associated with this instance of the IW VCC
88// TP. (R) (optional) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080089//
90// Operational State
Andrea Campanella10426e22021-10-15 17:58:04 +020091// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080093//
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,
124 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 },
133 }
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}