blob: cbde28dd8b64d8ee326dfc5c816eda000593d16f [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080017 /*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// Vdsl2LineConfigurationExtensions3ClassID is the 16-bit ID for the OMCI
29// Managed entity VDSL2 line configuration extensions 3
30const Vdsl2LineConfigurationExtensions3ClassID ClassID = ClassID(410)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var vdsl2lineconfigurationextensions3BME *ManagedEntityDefinition
33
34// Vdsl2LineConfigurationExtensions3 (class ID #410)
35// This ME extends the xDSL line configuration MEs.
36//
37// An instance of this ME is created and deleted by the OLT.
38//
39// Relationships
40// 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
41// associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single
42// pointer, which refers to the entire set of line configuration parts).
43//
44// Attributes
45// Managed Entity Id
46// Managed entity ID: This attribute uniquely identifies each instance of this ME. All xDSL and
47// VDSL2 line configuration profiles and extensions that pertain to a given PPTP xDSL UNI must
Matteo Scandolof9d43412021-01-12 11:11:34 -080048// share a common ME ID. (R, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070049//
50// Ripolicyds
51// RIPOLICYds: This attribute indicates which policy shall be applied to determine the triggers for
52// re-initialization in the downstream direction. A valid range of values is given in clause
Matteo Scandolof9d43412021-01-12 11:11:34 -080053// 7.3.1.1.12.1 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070054//
55// Ripolicyus
56// RIPOLICYus: This attribute indicates which policy shall be applied to determine the triggers for
57// re-initialization in the upstream direction. A valid range of values is given in clause
Matteo Scandolof9d43412021-01-12 11:11:34 -080058// 7.3.1.1.12.2 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070059//
60// Reinit_Time_Thresholdds
61// REINIT_TIME_THRESHOLDds: This attribute indicates defines the downstream threshold for re-
62// initialization based on SES, to be used by the VTU receiver when re-initialization policy 1 is
63// used in downstream. A valid range of values is given in clause 7.3.1.1.13.1 of [ITU-T G.997.1].
Matteo Scandolof9d43412021-01-12 11:11:34 -080064// (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070065//
66// Reinit_Time_Thresholdus
67// REINIT_TIME_THRESHOLDus: This attribute indicates defines the upstream threshold for re-
68// initialization based on SES, to be used by the VTU receiver when reinitialization policy 1 is
69// used in upstream. A valid range of values is given in clause 7.3.1.1.13.2 of [ITU-T G.997.1].
Matteo Scandolof9d43412021-01-12 11:11:34 -080070// (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070071//
72// Rxrefvnsfus
73// RXREFVNSFus: If SNRM_MODE = 4, this attribute defines the upstream receiver-referred virtual
Matteo Scandolof9d43412021-01-12 11:11:34 -080074// noise scaling factor. The attribute value ranges from 0 (-64.0-dBm) to 255 (+63.5-dBm) - see
75// clause 7.3.1.7.5 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070076//
77// Txrefvnsfds
78// TXREFVNSFds: If SNRM_MODE = 4, this attribute defines the downstream transmitter referred
Matteo Scandolof9d43412021-01-12 11:11:34 -080079// virtual noise scaling factor. The attribute value ranges from 0 (-64.0-dBm) to 255 (+63.5-dBm)
80// - see clause 7.3.1.7.6 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070081//
82// Rtx_Modeds
83// RTX_MODEds: This attribute controls the mode of operation of [ITU-T G.998.4] retransmission in
84// the downstream direction. A valid range of values is given in clause 7.3.1.11 of [ITU-T
Matteo Scandolof9d43412021-01-12 11:11:34 -080085// G.997.1]. (R,-W) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070086//
87// Rtx_Modeus
88// RTX_MODEus: This attribute controls the mode of operation of [ITU-T G.998.4] retransmission in
89// the upstream direction. A valid range of values is given in clause 7.3.1.11 of [ITU-T G.997.1].
Matteo Scandolof9d43412021-01-12 11:11:34 -080090// (R,-W) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070091//
92// Leftr_Thresh
93// LEFTR_THRESH: If retransmission is used in a given transmit direction, LEFTR_THRESH specifies
94// the threshold for declaring a near-end ''leftr'' defect. LEFTR_THRESH is equal to the integer
95// value of this attribute multiplied by 0.01. Valid values and usage are given in clause 7.3.1.12
Matteo Scandolof9d43412021-01-12 11:11:34 -080096// of [ITU-T G.997.1]. (R,-W) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070097//
98// Maxdelayoctet_Split Parameter Mdosplit
99// MAXDELAYOCTET-split parameter (MDOSPLIT): This attribute defines the percentage of the
100// MAXDELAYOCTET_ext if operating in [ITU-T G.998.4] or MAXDELAYOCTET in other cases allocated to
101// the downstream direction. MDOSPLIT is equal to the integer value of this attribute multiplied by
Matteo Scandolof9d43412021-01-12 11:11:34 -0800102// 1%. Valid values and usage are given in clause 7.3.1.14 of [ITUT-G.997.1]. (R,-W) (optional)
103// (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700104//
105// Attndr Method Attndr_Method
106// ATTNDR Method (ATTNDR_METHOD): This attribute specifies the method to be used for the
107// calculation of the ATTNDR in the downstream and upstream direction. Valid values are given in
Matteo Scandolof9d43412021-01-12 11:11:34 -0800108// clause 7.3.1.15.1 of [ITU-T G.997.1]. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700109//
110// Attndr Maxdelayoctet_Split Parameter Attndr_Mdosplit
111// ATTNDR MAXDELAYOCTET-split parameter (ATTNDR_MDOSPLIT): This attribute defines the percentage of
112// the MAXDELAYOCTET_ext if operating in [ITU-T G.998.4] or MAXDELAYOCTET in other cases allocated
113// to the downstream direction to be used in the improved method for calculation of the ATTNDR. The
114// valid values are identical to the values of the line configuration parameter MDOSPLIT. See
Matteo Scandolof9d43412021-01-12 11:11:34 -0800115// clause 7.3.1.15.2 of [ITUT-G.997.1]. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700116//
117type Vdsl2LineConfigurationExtensions3 struct {
118 ManagedEntityDefinition
119 Attributes AttributeValueMap
120}
121
122func init() {
123 vdsl2lineconfigurationextensions3BME = &ManagedEntityDefinition{
124 Name: "Vdsl2LineConfigurationExtensions3",
125 ClassID: 410,
126 MessageTypes: mapset.NewSetWith(
127 Create,
128 Delete,
129 Get,
130 Set,
131 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800132 AllowedAttributeMask: 0xfff0,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700133 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -0800134 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
135 1: ByteField("Ripolicyds", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, true, false, 1),
136 2: ByteField("Ripolicyus", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, true, false, 2),
137 3: ByteField("ReinitTimeThresholdds", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3),
138 4: ByteField("ReinitTimeThresholdus", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
139 5: ByteField("Rxrefvnsfus", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5),
140 6: ByteField("Txrefvnsfds", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, true, false, 6),
141 7: ByteField("RtxModeds", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
142 8: ByteField("RtxModeus", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
143 9: ByteField("LeftrThresh", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
144 10: ByteField("MaxdelayoctetSplitParameterMdosplit", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
145 11: ByteField("AttndrMethodAttndrMethod", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
146 12: ByteField("AttndrMaxdelayoctetSplitParameterAttndrMdosplit", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700147 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800148 Access: CreatedByOlt,
149 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700150 }
151}
152
Matteo Scandolof9d43412021-01-12 11:11:34 -0800153// NewVdsl2LineConfigurationExtensions3 (class ID 410) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700154// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800155// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700156func NewVdsl2LineConfigurationExtensions3(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800157 return NewManagedEntity(*vdsl2lineconfigurationextensions3BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700158}