blob: 1efee1686a656ce98abc8ebf063473b677ab4431 [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// InterworkingVccTerminationPointClassID is the 16-bit ID for the OMCI
26// Managed entity Interworking VCC termination point
27const InterworkingVccTerminationPointClassID ClassID = ClassID(14)
28
29var interworkingvccterminationpointBME *ManagedEntityDefinition
30
31// InterworkingVccTerminationPoint (class ID #14)
32// An instance of this ME represents a point in the ONU where the IW of a service or underlying
33// physical infrastructure (e.g., ADSL) to an ATM layer takes place. At this point, ATM cells are
34// generated from a bit stream (e.g., Ethernet) or a bit stream is reconstructed from ATM cells.
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 occurrence of transformation of a data stream into ATM
40// cells and vice 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// Vci Value
48// VCI value: This attribute identifies the VCI value associated with this IW VCC TP. (R,-W,
49// setbycreate) (mandatory) (2-bytes)
50//
51// Vp Network Ctp Connectivity Pointer
52// VP network CTP connectivity pointer: This attribute points to the VP network CTP associated with
53// this IW VCC TP. (R,-W, setbycreate) (mandatory) (2-bytes)
54//
55// Deprecated 1
56// Deprecated 1: Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (1-byte)
57//
58// Deprecated 2
59// Deprecated 2: Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
60//
61// Aal5 Profile Pointer
62// AAL5 profile pointer: This attribute points to an instance of the AAL5 profile. (R,-W,
63// setbycreate) (mandatory) (2-bytes)
64//
65// Deprecated 3
66// Deprecated 3: Not used; should be set to 0. (R,-W, setbycreate) (mandatory) (2-bytes)
67//
68// Aal Loopback Configuration
69// The default value of this attribute is 0. (R,-W) (mandatory) (1-byte)
70//
71// Pptp Counter
72// PPTP counter: This value is the number of instances of PPTP MEs associated with this instance of
73// the IW VCC TP. (R) (optional) (1-byte)
74//
75// Operational State
76// Operational state: This attribute indicates whether the ME is capable of performing its
77// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
78//
79type InterworkingVccTerminationPoint struct {
80 ManagedEntityDefinition
81 Attributes AttributeValueMap
82}
83
84func init() {
85 interworkingvccterminationpointBME = &ManagedEntityDefinition{
86 Name: "InterworkingVccTerminationPoint",
87 ClassID: 14,
88 MessageTypes: mapset.NewSetWith(
89 Create,
90 Delete,
91 Get,
92 Set,
93 ),
94 AllowedAttributeMask: 0xff80,
95 AttributeDefinitions: AttributeDefinitionMap{
96 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
97 1: Uint16Field("VciValue", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
98 2: Uint16Field("VpNetworkCtpConnectivityPointer", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
99 3: ByteField("Deprecated1", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 3),
100 4: Uint16Field("Deprecated2", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 4),
101 5: Uint16Field("Aal5ProfilePointer", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 5),
102 6: Uint16Field("Deprecated3", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, true, 6),
103 7: ByteField("AalLoopbackConfiguration", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
104 8: ByteField("PptpCounter", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
105 9: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), true, true, false, 9),
106 },
107 Access: CreatedByOlt,
108 Support: UnknownSupport,
109 }
110}
111
112// NewInterworkingVccTerminationPoint (class ID 14) creates the basic
113// Managed Entity definition that is used to validate an ME of this type that
114// is received from or transmitted to the OMCC.
115func NewInterworkingVccTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
116 return NewManagedEntity(*interworkingvccterminationpointBME, params...)
117}