blob: 20a69a944215a9ce0efacbe75905a4abf5e4a2c9 [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
Elia Battiston9bfe1102022-02-03 10:38:03 +01004 *
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
Elia Battiston9bfe1102022-02-03 10:38:03 +01008 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Elia Battiston9bfe1102022-02-03 10:38:03 +010010 *
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 */
Girish Gowdra161d27a2021-05-05 12:01:44 -070017/*
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// XdslLineConfigurationProfilePart3ClassID is the 16-bit ID for the OMCI
29// Managed entity xDSL line configuration profile part 3
Andrea Campanella10426e22021-10-15 17:58:04 +020030const XdslLineConfigurationProfilePart3ClassID = ClassID(106) // 0x006a
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var xdsllineconfigurationprofilepart3BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// XdslLineConfigurationProfilePart3 (Class ID: #106 / 0x006a)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070035// The overall xDSL line configuration profile is modelled in several parts, all of which are
36// associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single
37// pointer, which refers to the entire set of line configuration profile parts).
38//
39// Relationships
40// An instance of this ME may be associated with zero or more instances of an xDSL UNI.
41//
42// Attributes
43// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020044// This attribute uniquely identifies each instance of this ME. All xDSL and VDSL2 line
45// configuration profiles and extensions that pertain to a given PPTP xDSL UNI must share a common
46// ME ID. (R, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070047//
48// Loop Diagnostics Mode Forced Ldsf
Andrea Campanella10426e22021-10-15 17:58:04 +020049// Loop diagnostics mode forced (LDSF): This configuration parameter forces the line into loop
50// diagnostic mode via the xTU-C. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and
51// [ITUT-G.992.5]. It is defined as follows.
52//
53// 0 Inhibits the xTU-C from performing loop diagnostic mode procedures on the line. Loop
54// diagnostic mode procedures may still be initiated by the xTU-R.
55//
56// 1 Forces the xTU-C to perform loop diagnostics procedures.
57//
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070058// Only while the line power management state is L3 can the line be forced into loop diagnostic
59// mode. When loop diagnostic procedures complete successfully, the ONU resets this attribute to 0.
60// The line remains in the L3 idle state. The loop diagnostics data are available at least until
61// the line is forced to the L0 state. As long as loop diagnostic procedures have not completed
62// successfully, attempts are made to do so, until the loop diagnostic mode is no longer forced on
63// the line through this configuration parameter. If loop diagnostic procedures cannot be completed
64// successfully after a vendordiscretionary number of retries or within a vendor-discretionary
Matteo Scandolof9d43412021-01-12 11:11:34 -080065// timeout, then an initialization failure occurs. (R,-W, setbycreate) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070066//
67// Automode Cold Start Forced
Andrea Campanella10426e22021-10-15 17:58:04 +020068// This attribute is defined to improve testing of the performance of xTUs supporting automode.
69// Valid values are 0 and 1. A change in value of this attribute indicates a change in loop
70// conditions applied to the devices under test. The xTUs reset any historical information used for
71// automode, for shortening an ITU-T G.994.1 handshake, or for shortening the initialization
72// procedure.
73//
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070074// Automode is defined as the case where multiple operation modes are enabled in xTSE (Table
75// 9.7.12-1) and where the selection of the operation mode to be used for transmission depends, not
76// only on the common capabilities of both xTUs (as exchanged in [ITU-T G.994.1]), but also on
Matteo Scandolof9d43412021-01-12 11:11:34 -080077// achievable data rates under given loop conditions. (R,-W, setbycreate) (mandatory if automode is
78// supported) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070079//
80// L2 Atpr
81// L2ATPR: This parameter specifies the maximum aggregate transmit power reduction that can be
82// performed in the L2 request (i.e., at the transition of L0 to L2 state) or through a single
Matteo Scandolof9d43412021-01-12 11:11:34 -080083// power trim in the L2 state. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and
84// [ITUT-G.992.5]. This attribute ranges from 0 (0-dB) dB to 31 (31-dB). (R, W, setbycreate)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070085// (mandatory) (1 byte)
86//
87// L2 Atprt
88// L2ATPRT: This parameter specifies the total maximum aggregate transmit power reduction (in
89// decibels) that can be performed in an L2 state. This is the sum of all reductions of L2 requests
90// (i.e., at transitions from L0 to L2 state) and power trims. This attribute ranges from 0 (0 dB)
91// dB to 31 (31 dB). (R, W, setbycreate) (mandatory) (1 byte)
92//
93// Force Inp Downstream
Andrea Campanella10426e22021-10-15 17:58:04 +020094// When set to 1, the FORCEINPds attribute forces the framer settings of all downstream bearer
95// channels to be selected such that the impulse noise protection (INP) computed according to the
96// formula specified in the relevant Recommendation is greater than or equal to the minimal INP
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070097// requirement. The default value 0 disables this function. (R, W) (mandatory for [ITU-T G.993.2],
98// optional for other Recommendations that support it) (1 byte)
99//
Andrea Campanella10426e22021-10-15 17:58:04 +0200100// Force Inp Upstream
101// When set to 1, the FORCEINPus attribute forces the framer settings of all upstream bearer
102// channels to be selected such that the INP computed according to the formula specified in the
103// relevant Recommendation is greater than or equal to the minimal INP requirement. The default
104// value 0 disables this function. (R, W) (mandatory for [ITU-T G.993.2], optional for other
105// Recommendations that support it) (1 byte)
106//
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700107// Update Request Flag For Near_End Test Parameters
108// Update request flag for near-end test parameters: The UPDATE-TEST-NE attribute forces an update
109// of all near-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update
110// is triggered by setting this attribute to 1, whereupon the near-end test parameters are expected
Matteo Scandolof9d43412021-01-12 11:11:34 -0800111// to be updated within 10-s, and the ONU should reset the attribute value to 0. The update request
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700112// flag is independent of any autonomous update process in the system. The update request attribute
Matteo Scandolof9d43412021-01-12 11:11:34 -0800113// must be prepared to accept another set after a period not to exceed 3-min, a period that starts
114// when the flag is set via the OMCI or by an autonomous process in the system. (R,-W) (optional)
115// (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700116//
117// Update Request Flag For Far_End Test Parameters
118// Update request flag for far-end test parameters: The UPDATE-TEST-FE attribute forces an update
119// of all far-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update is
120// triggered by setting this attribute to 1, whereupon the far-end test parameters are expected to
Matteo Scandolof9d43412021-01-12 11:11:34 -0800121// be updated within 10-s, and the ONU should reset the attribute value to 0. The update request
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700122// flag is independent of any autonomous update process in the system. The update request attribute
Matteo Scandolof9d43412021-01-12 11:11:34 -0800123// must be prepared to accept another set after a period not to exceed 3-min, a period that starts
124// when the flag is set via the OMCI or by an autonomous process in the system. (R,-W) (optional)
125// (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700126//
Andrea Campanella10426e22021-10-15 17:58:04 +0200127// The following eight attributes configure the impulse noise monitoring (INM) function, whose
128// results are available via the xDSL impulse noise monitor PM history data ME. The downstream
129// attributes are applicable to [ITUT G.993.2], [ITUT G.992.3] and [ITUT G.992.5]. Only [ITUT
130// G.993.2] supports the upstream attributes.
131//
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700132// Inm Inter Arrival Time Offset Upstream
133// INM inter-arrival time offset upstream: INMIATOus is the inter-arrival time (IAT) offset that
134// the xTU-C receiver uses to determine in which bin of the IAT histogram the IAT is reported.
135// Valid values for INMIATO range from 3 to 511 discrete multi-tone (DMT) symbols in steps of 1 DMT
Matteo Scandolof9d43412021-01-12 11:11:34 -0800136// symbol. (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700137//
138// Inm Inter_Arrival Time Step Upstream
139// INM inter-arrival time step upstream: INMIATSus is the IAT step that the xTU-C receiver uses to
140// determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS range
Matteo Scandolof9d43412021-01-12 11:11:34 -0800141// from 0 to 7 in steps of 1. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700142//
143// Inm Cluster Continuation Value Upstream
Andrea Campanella10426e22021-10-15 17:58:04 +0200144// INMCCus is the cluster continuation value that the xTU-C receiver uses in the cluster indication
145// process described in the applicable Recommendation. Valid values for INMCC range from 0 to 64
146// DMT symbols in steps of 1 DMT symbol. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700147//
148// Inm Equivalent Inp Mode Upstream
Andrea Campanella10426e22021-10-15 17:58:04 +0200149// INM_INPEQ_MODEus is the INM equivalent INP mode that the xTU-C receiver uses in the computation
150// of the equivalent INP, as defined in the applicable Recommendation. Valid values for
151// INM_INPEQ_MODE are 0..4. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700152//
153// Inm Inter Arrival Time Offset Downstream
154// INM inter-arrival time offset downstream: INMIATOds is the IAT offset that the xTU-R receiver
155// uses to determine in which bin of the IAT histogram the IAT is reported. Valid values for
Matteo Scandolof9d43412021-01-12 11:11:34 -0800156// INMIATO range from 3 to 511 DMT symbols in steps of 1 DMT symbol. (R,-W) (optional) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700157//
158// Inm Inter_Arrival Time Step Downstream
159// INM inter-arrival time step downstream: INMIATSds is the IAT step that the xTU-R receiver uses
160// to determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS
Matteo Scandolof9d43412021-01-12 11:11:34 -0800161// range from 0 to 7 in steps of 1. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700162//
163// Inm Cluster Continuation Value Downstream
Andrea Campanella10426e22021-10-15 17:58:04 +0200164// INMCCds is the cluster continuation value that the xTU-R receiver uses in the cluster indication
165// process described in the applicable Recommendation. Valid values for INMCC range from 0 to 64
166// DMT symbols in steps of 1 DMT symbol. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700167//
168// Inm Equivalent Inp Mode Downstream
Andrea Campanella10426e22021-10-15 17:58:04 +0200169// INM_INPEQ_MODEds is the INM equivalent INP mode that the xTU-R receiver uses in the computation
170// of the equivalent INP, as defined in the applicable Recommendation. Valid values for
171// INM_INPEQ_MODE are 0..4. (R,-W) (optional) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700172//
173type XdslLineConfigurationProfilePart3 struct {
174 ManagedEntityDefinition
175 Attributes AttributeValueMap
176}
177
Elia Battiston9bfe1102022-02-03 10:38:03 +0100178// Attribute name constants
179
180const XdslLineConfigurationProfilePart3_LoopDiagnosticsModeForcedLdsf = "LoopDiagnosticsModeForcedLdsf"
181const XdslLineConfigurationProfilePart3_AutomodeColdStartForced = "AutomodeColdStartForced"
182const XdslLineConfigurationProfilePart3_L2Atpr = "L2Atpr"
183const XdslLineConfigurationProfilePart3_L2Atprt = "L2Atprt"
184const XdslLineConfigurationProfilePart3_ForceInpDownstream = "ForceInpDownstream"
185const XdslLineConfigurationProfilePart3_ForceInpUpstream = "ForceInpUpstream"
186const XdslLineConfigurationProfilePart3_UpdateRequestFlagForNearEndTestParameters = "UpdateRequestFlagForNearEndTestParameters"
187const XdslLineConfigurationProfilePart3_UpdateRequestFlagForFarEndTestParameters = "UpdateRequestFlagForFarEndTestParameters"
188const XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetUpstream = "InmInterArrivalTimeOffsetUpstream"
189const XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepUpstream = "InmInterArrivalTimeStepUpstream"
190const XdslLineConfigurationProfilePart3_InmClusterContinuationValueUpstream = "InmClusterContinuationValueUpstream"
191const XdslLineConfigurationProfilePart3_InmEquivalentInpModeUpstream = "InmEquivalentInpModeUpstream"
192const XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetDownstream = "InmInterArrivalTimeOffsetDownstream"
193const XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepDownstream = "InmInterArrivalTimeStepDownstream"
194const XdslLineConfigurationProfilePart3_InmClusterContinuationValueDownstream = "InmClusterContinuationValueDownstream"
195const XdslLineConfigurationProfilePart3_InmEquivalentInpModeDownstream = "InmEquivalentInpModeDownstream"
196
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700197func init() {
198 xdsllineconfigurationprofilepart3BME = &ManagedEntityDefinition{
199 Name: "XdslLineConfigurationProfilePart3",
Elia Battiston9bfe1102022-02-03 10:38:03 +0100200 ClassID: XdslLineConfigurationProfilePart3ClassID,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700201 MessageTypes: mapset.NewSetWith(
202 Create,
203 Delete,
204 Get,
205 Set,
206 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800207 AllowedAttributeMask: 0xffff,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700208 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100209 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
210 1: ByteField(XdslLineConfigurationProfilePart3_LoopDiagnosticsModeForcedLdsf, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
211 2: ByteField(XdslLineConfigurationProfilePart3_AutomodeColdStartForced, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
212 3: ByteField(XdslLineConfigurationProfilePart3_L2Atpr, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
213 4: ByteField(XdslLineConfigurationProfilePart3_L2Atprt, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
214 5: ByteField(XdslLineConfigurationProfilePart3_ForceInpDownstream, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
215 6: ByteField(XdslLineConfigurationProfilePart3_ForceInpUpstream, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
216 7: ByteField(XdslLineConfigurationProfilePart3_UpdateRequestFlagForNearEndTestParameters, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), true, true, false, 7),
217 8: ByteField(XdslLineConfigurationProfilePart3_UpdateRequestFlagForFarEndTestParameters, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), true, true, false, 8),
218 9: Uint16Field(XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetUpstream, UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, true, false, 9),
219 10: ByteField(XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepUpstream, UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
220 11: ByteField(XdslLineConfigurationProfilePart3_InmClusterContinuationValueUpstream, UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
221 12: ByteField(XdslLineConfigurationProfilePart3_InmEquivalentInpModeUpstream, UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
222 13: Uint16Field(XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetDownstream, UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
223 14: ByteField(XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepDownstream, UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read, Write), false, true, false, 14),
224 15: ByteField(XdslLineConfigurationProfilePart3_InmClusterContinuationValueDownstream, UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read, Write), false, true, false, 15),
225 16: ByteField(XdslLineConfigurationProfilePart3_InmEquivalentInpModeDownstream, UnsignedIntegerAttributeType, 0x0001, 0, mapset.NewSetWith(Read, Write), false, true, false, 16),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700226 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800227 Access: CreatedByOlt,
228 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700229 }
230}
231
Matteo Scandolof9d43412021-01-12 11:11:34 -0800232// NewXdslLineConfigurationProfilePart3 (class ID 106) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700233// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800234// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700235func NewXdslLineConfigurationProfilePart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800236 return NewManagedEntity(*xdsllineconfigurationprofilepart3BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700237}