blob: 9bffbdea844037b1be7f189e5fd6697f86601400 [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
30const InterworkingVccTerminationPointClassID ClassID = ClassID(14)
31
32var interworkingvccterminationpointBME *ManagedEntityDefinition
33
34// InterworkingVccTerminationPoint (class ID #14)
35// 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
47// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R,-setbycreate)
48// (mandatory) (2-bytes)
49//
50// Vci Value
51// VCI value: This attribute identifies the VCI value associated with this IW VCC TP. (R,-W,
52// setbycreate) (mandatory) (2-bytes)
53//
54// Vp Network Ctp Connectivity Pointer
55// VP network CTP connectivity pointer: This attribute points to the VP network CTP associated with
56// this IW VCC TP. (R,-W, setbycreate) (mandatory) (2-bytes)
57//
58// Deprecated 1
59// Deprecated 1: Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (1-byte)
60//
61// Deprecated 2
62// Deprecated 2: Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
63//
64// Aal5 Profile Pointer
65// AAL5 profile pointer: This attribute points to an instance of the AAL5 profile. (R,-W,
66// setbycreate) (mandatory) (2-bytes)
67//
68// Deprecated 3
69// Deprecated 3: Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
70//
71// Aal Loopback Configuration
72// The default value of this attribute is 0. (R,-W) (mandatory) (1-byte)
73//
74// Pptp Counter
75// PPTP counter: This value is the number of instances of PPTP MEs associated with this instance of
76// the IW VCC TP. (R) (optional) (1-byte)
77//
78// Operational State
79// Operational state: This attribute indicates whether the ME is capable of performing its
80// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
81//
82type InterworkingVccTerminationPoint struct {
83 ManagedEntityDefinition
84 Attributes AttributeValueMap
85}
86
87func init() {
88 interworkingvccterminationpointBME = &ManagedEntityDefinition{
89 Name: "InterworkingVccTerminationPoint",
90 ClassID: 14,
91 MessageTypes: mapset.NewSetWith(
92 Create,
93 Delete,
94 Get,
95 Set,
96 ),
97 AllowedAttributeMask: 0xff80,
98 AttributeDefinitions: AttributeDefinitionMap{
99 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
100 1: Uint16Field("VciValue", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
101 2: Uint16Field("VpNetworkCtpConnectivityPointer", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
102 3: ByteField("Deprecated1", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 3),
103 4: Uint16Field("Deprecated2", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 4),
104 5: Uint16Field("Aal5ProfilePointer", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5),
105 6: Uint16Field("Deprecated3", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 6),
106 7: ByteField("AalLoopbackConfiguration", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
107 8: ByteField("PptpCounter", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
108 9: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), true, true, false, 9),
109 },
110 Access: CreatedByOlt,
111 Support: UnknownSupport,
112 Alarms: AlarmMap{
113 0: "End-to-end VC AIS layer management indication receiving (LMIR)",
114 1: "End-to-end VC RDI LMIR",
115 2: "End-to-end VC AIS layer management indication generation (LMIG)",
116 3: "End-to-end VC RDI LMIG",
117 4: "Segment loss of continuity",
118 5: "End-to-end loss of continuity",
119 6: "CSA",
120 },
121 }
122}
123
124// NewInterworkingVccTerminationPoint (class ID 14) creates the basic
125// Managed Entity definition that is used to validate an ME of this type that
126// is received from or transmitted to the OMCC.
127func NewInterworkingVccTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
128 return NewManagedEntity(*interworkingvccterminationpointBME, params...)
129}