blob: c856c28437db6507ab3ca25f4d396aa2ce4d5093 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const InterworkingVccTerminationPointClassId ClassID = ClassID(14)
25
26var interworkingvccterminationpointBME *ManagedEntityDefinition
27
28// InterworkingVccTerminationPoint (class ID #14)
29// An instance of this ME represents a point in the ONU where the IW of a service or underlying
30// physical infrastructure (e.g., ADSL) to an ATM layer takes place. At this point, ATM cells are
31// generated from a bit stream (e.g., Ethernet) or a bit stream is reconstructed from ATM cells.
32//
33// Instances of this ME are created and deleted by the OLT.
34//
35// Relationships
36// One instance of this ME exists for each occurrence of transformation of a data stream into ATM
37// cells and vice versa.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
42// (mandatory) (2 bytes)
43//
44// Vci Value
45// VCI value: This attribute identifies the VCI value associated with this IW VCC TP. (R, W,
46// setbycreate) (mandatory) (2 bytes)
47//
48// Vp Network Ctp Connectivity Pointer
49// VP network CTP connectivity pointer: This attribute points to the VP network CTP associated with
50// this IW VCC TP. (R, W, setbycreate) (mandatory) (2 bytes)
51//
52// Deprecated 1
53// Deprecated 1: Not used; should be set to 0. (R, W, setbycreate) (mandatory) (1 byte)
54//
55// Deprecated 2
56// Deprecated 2: Not used; should be set to 0. (R, W, setbycreate) (mandatory) (2 bytes)
57//
58// Aal5 Profile Pointer
59// AAL5 profile pointer: This attribute points to an instance of the AAL5 profile. (R, W,
60// setbycreate) (mandatory) (2 bytes)
61//
62// Deprecated 3
63// Deprecated 3: Not used; should be set to 0. (R, W, setbycreate) (mandatory) (2 bytes)
64//
65// Aal Loopback Configuration
66// The default value of this attribute is 0. (R, W) (mandatory) (1 byte)
67//
68// Pptp Counter
69// PPTP counter: This value is the number of instances of PPTP MEs associated with this instance of
70// the IW VCC TP. (R) (optional) (1 byte)
71//
72// Operational State
73// Operational state: This attribute indicates whether the ME is capable of performing its
74// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte)
75//
76type InterworkingVccTerminationPoint struct {
77 ManagedEntityDefinition
78 Attributes AttributeValueMap
79}
80
81func init() {
82 interworkingvccterminationpointBME = &ManagedEntityDefinition{
83 Name: "InterworkingVccTerminationPoint",
84 ClassID: 14,
85 MessageTypes: mapset.NewSetWith(
86 Create,
87 Delete,
88 Get,
89 Set,
90 ),
91 AllowedAttributeMask: 0XFF80,
92 AttributeDefinitions: AttributeDefinitionMap{
93 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
94 1: Uint16Field("VciValue", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
95 2: Uint16Field("VpNetworkCtpConnectivityPointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
96 3: ByteField("Deprecated1", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, true, 3),
97 4: Uint16Field("Deprecated2", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, true, 4),
98 5: Uint16Field("Aal5ProfilePointer", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 5),
99 6: Uint16Field("Deprecated3", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, true, 6),
100 7: ByteField("AalLoopbackConfiguration", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 7),
101 8: ByteField("PptpCounter", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
102 9: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 9),
103 },
104 }
105}
106
107// NewInterworkingVccTerminationPoint (class ID 14 creates the basic
108// Managed Entity definition that is used to validate an ME of this type that
109// is received from the wire, about to be sent on the wire.
110func NewInterworkingVccTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
111 return NewManagedEntity(interworkingvccterminationpointBME, params...)
112}