blob: d2907e3cb606674f926da89cd2883e2b590d6c88 [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// Vdsl2LineConfigurationExtensions3ClassID is the 16-bit ID for the OMCI
26// Managed entity VDSL2 line configuration extensions 3
27const Vdsl2LineConfigurationExtensions3ClassID ClassID = ClassID(410)
28
29var vdsl2lineconfigurationextensions3BME *ManagedEntityDefinition
30
31// Vdsl2LineConfigurationExtensions3 (class ID #410)
32// This ME extends the xDSL line configuration MEs.
33//
34// An instance of this ME is created and deleted by the OLT.
35//
36// Relationships
37// An instance of this ME may be associated with zero or more instances of an xDSL UNI.//// The overall xDSL line configuration profile is modelled in several parts, all of which are
38// associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single
39// pointer, which refers to the entire set of line configuration parts).
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. All xDSL and
44// VDSL2 line configuration profiles and extensions that pertain to a given PPTP xDSL UNI must
45// share a common ME ID. (R, setbycreate) (mandatory) (2-bytes)
46//
47// Ripolicyds
48// RIPOLICYds: This attribute indicates which policy shall be applied to determine the triggers for
49// re-initialization in the downstream direction. A valid range of values is given in clause
50// 7.3.1.1.12.1 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
51//
52// Ripolicyus
53// RIPOLICYus: This attribute indicates which policy shall be applied to determine the triggers for
54// re-initialization in the upstream direction. A valid range of values is given in clause
55// 7.3.1.1.12.2 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
56//
57// Reinit_Time_Thresholdds
58// REINIT_TIME_THRESHOLDds: This attribute indicates defines the downstream threshold for re-
59// initialization based on SES, to be used by the VTU receiver when re-initialization policy 1 is
60// used in downstream. A valid range of values is given in clause 7.3.1.1.13.1 of [ITU-T G.997.1].
61// (R,-W) (optional) (1-byte)
62//
63// Reinit_Time_Thresholdus
64// REINIT_TIME_THRESHOLDus: This attribute indicates defines the upstream threshold for re-
65// initialization based on SES, to be used by the VTU receiver when reinitialization policy 1 is
66// used in upstream. A valid range of values is given in clause 7.3.1.1.13.2 of [ITU-T G.997.1].
67// (R,-W) (optional) (1-byte)
68//
69// Rxrefvnsfus
70// RXREFVNSFus: If SNRM_MODE = 4, this attribute defines the upstream receiver-referred virtual
71// noise scaling factor. The attribute value ranges from 0 (-64.0-dBm) to 255 (+63.5-dBm) - see
72// clause 7.3.1.7.5 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
73//
74// Txrefvnsfds
75// TXREFVNSFds: If SNRM_MODE = 4, this attribute defines the downstream transmitter referred
76// virtual noise scaling factor. The attribute value ranges from 0 (-64.0-dBm) to 255 (+63.5-dBm)
77// - see clause 7.3.1.7.6 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
78//
79// Rtx_Modeds
80// RTX_MODEds: This attribute controls the mode of operation of [ITU-T G.998.4] retransmission in
81// the downstream direction. A valid range of values is given in clause 7.3.1.11 of [ITU-T
82// G.997.1]. (R,-W) (mandatory) (1-byte)
83//
84// Rtx_Modeus
85// RTX_MODEus: This attribute controls the mode of operation of [ITU-T G.998.4] retransmission in
86// the upstream direction. A valid range of values is given in clause 7.3.1.11 of [ITU-T G.997.1].
87// (R,-W) (mandatory) (1-byte)
88//
89// Leftr_Thresh
90// LEFTR_THRESH: If retransmission is used in a given transmit direction, LEFTR_THRESH specifies
91// the threshold for declaring a near-end ''leftr'' defect. LEFTR_THRESH is equal to the integer
92// value of this attribute multiplied by 0.01. Valid values and usage are given in clause 7.3.1.12
93// of [ITU-T G.997.1]. (R,-W) (mandatory) (1-byte)
94//
95// Maxdelayoctet_Split Parameter Mdosplit
96// MAXDELAYOCTET-split parameter (MDOSPLIT): This attribute defines the percentage of the
97// MAXDELAYOCTET_ext if operating in [ITU-T G.998.4] or MAXDELAYOCTET in other cases allocated to
98// the downstream direction. MDOSPLIT is equal to the integer value of this attribute multiplied by
99// 1%. Valid values and usage are given in clause 7.3.1.14 of [ITUT-G.997.1]. (R,-W) (optional)
100// (1-byte)
101//
102// Attndr Method Attndr_Method
103// ATTNDR Method (ATTNDR_METHOD): This attribute specifies the method to be used for the
104// calculation of the ATTNDR in the downstream and upstream direction. Valid values are given in
105// clause 7.3.1.15.1 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
106//
107// Attndr Maxdelayoctet_Split Parameter Attndr_Mdosplit
108// ATTNDR MAXDELAYOCTET-split parameter (ATTNDR_MDOSPLIT): This attribute defines the percentage of
109// the MAXDELAYOCTET_ext if operating in [ITU-T G.998.4] or MAXDELAYOCTET in other cases allocated
110// to the downstream direction to be used in the improved method for calculation of the ATTNDR. The
111// valid values are identical to the values of the line configuration parameter MDOSPLIT. See
112// clause 7.3.1.15.2 of [ITUT-G.997.1]. (R,-W) (optional) (1-byte)
113//
114type Vdsl2LineConfigurationExtensions3 struct {
115 ManagedEntityDefinition
116 Attributes AttributeValueMap
117}
118
119func init() {
120 vdsl2lineconfigurationextensions3BME = &ManagedEntityDefinition{
121 Name: "Vdsl2LineConfigurationExtensions3",
122 ClassID: 410,
123 MessageTypes: mapset.NewSetWith(
124 Create,
125 Delete,
126 Get,
127 Set,
128 ),
129 AllowedAttributeMask: 0xfff0,
130 AttributeDefinitions: AttributeDefinitionMap{
131 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
132 1: ByteField("Ripolicyds", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, true, false, 1),
133 2: ByteField("Ripolicyus", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2),
134 3: ByteField("ReinitTimeThresholdds", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3),
135 4: ByteField("ReinitTimeThresholdus", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
136 5: ByteField("Rxrefvnsfus", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5),
137 6: ByteField("Txrefvnsfds", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6),
138 7: ByteField("RtxModeds", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
139 8: ByteField("RtxModeus", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
140 9: ByteField("LeftrThresh", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
141 10: ByteField("MaxdelayoctetSplitParameterMdosplit", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
142 11: ByteField("AttndrMethodAttndrMethod", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
143 12: ByteField("AttndrMaxdelayoctetSplitParameterAttndrMdosplit", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
144 },
145 Access: CreatedByOlt,
146 Support: UnknownSupport,
147 }
148}
149
150// NewVdsl2LineConfigurationExtensions3 (class ID 410) creates the basic
151// Managed Entity definition that is used to validate an ME of this type that
152// is received from or transmitted to the OMCC.
153func NewVdsl2LineConfigurationExtensions3(params ...ParamData) (*ManagedEntity, OmciErrors) {
154 return NewManagedEntity(*vdsl2lineconfigurationextensions3BME, params...)
155}