blob: 9623bed6d7077117641c38fcf96fd59b383e0373 [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 XdslLineConfigurationProfilePart3ClassId ClassID = ClassID(106)
25
26var xdsllineconfigurationprofilepart3BME *ManagedEntityDefinition
27
28// XdslLineConfigurationProfilePart3 (class ID #106)
29// The overall xDSL line configuration profile is modelled in several parts, all of which are
30// associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single
31// pointer, which refers to the entire set of line configuration profile parts).
32//
33// Relationships
34// An instance of this ME may be associated with zero or more instances of an xDSL UNI.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute uniquely identifies each instance of this ME. All xDSL and
39// VDSL2 line configuration profiles and extensions that pertain to a given PPTP xDSL UNI must
40// share a common ME ID. (R, setbycreate) (mandatory) (2 bytes)
41//
42// Loop Diagnostics Mode Forced Ldsf
43// Only while the line power management state is L3 can the line be forced into loop diagnostic
44// mode. When loop diagnostic procedures complete successfully, the ONU resets this attribute to 0.
45// The line remains in the L3 idle state. The loop diagnostics data are available at least until
46// the line is forced to the L0 state. As long as loop diagnostic procedures have not completed
47// successfully, attempts are made to do so, until the loop diagnostic mode is no longer forced on
48// the line through this configuration parameter. If loop diagnostic procedures cannot be completed
49// successfully after a vendordiscretionary number of retries or within a vendor-discretionary
50// timeout, then an initialization failure occurs. (R, W, setbycreate) (mandatory) (1 byte)
51//
52// Automode Cold Start Forced
53// Automode is defined as the case where multiple operation modes are enabled in xTSE (Table
54// 9.7.12-1) and where the selection of the operation mode to be used for transmission depends, not
55// only on the common capabilities of both xTUs (as exchanged in [ITU-T G.994.1]), but also on
56// achievable data rates under given loop conditions. (R, W, setbycreate) (mandatory if automode is
57// supported) (1 byte)
58//
59// L2 Atpr
60// L2ATPR: This parameter specifies the maximum aggregate transmit power reduction that can be
61// performed in the L2 request (i.e., at the transition of L0 to L2 state) or through a single
62// power trim in the L2 state. It is only valid for [ITUT G.992.3], [ITUT G.992.4] and
63// [ITUT G.992.5]. This attribute ranges from 0 (0 dB) dB to 31 (31 dB). (R, W, setbycreate)
64// (mandatory) (1 byte)
65//
66// L2 Atprt
67// L2ATPRT: This parameter specifies the total maximum aggregate transmit power reduction (in
68// decibels) that can be performed in an L2 state. This is the sum of all reductions of L2 requests
69// (i.e., at transitions from L0 to L2 state) and power trims. This attribute ranges from 0 (0 dB)
70// dB to 31 (31 dB). (R, W, setbycreate) (mandatory) (1 byte)
71//
72// Force Inp Downstream
73// Force INP downstream: When set to 1, the FORCEINPds attribute forces the framer settings of all
74// downstream bearer channels to be selected such that the impulse noise protection (INP) computed
75// according to the formula specified in the relevant Recommendation is greater than or equal to
76// the minimal INP requirement. The default value 0 disables this function. (R, W) (mandatory for
77// [ITU-T G.993.2], optional for other Recommendations that support it) (1 byte)
78//
79// Force Inp Upstream
80// Force INP upstream: When set to 1, the FORCEINPus attribute forces the framer settings of all
81// upstream bearer channels to be selected such that the INP computed according to the formula
82// specified in the relevant Recommendation is greater than or equal to the minimal INP
83// requirement. The default value 0 disables this function. (R, W) (mandatory for [ITU-T G.993.2],
84// optional for other Recommendations that support it) (1 byte)
85//
86// Update Request Flag For Near_End Test Parameters
87// Update request flag for near-end test parameters: The UPDATE-TEST-NE attribute forces an update
88// of all near-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update
89// is triggered by setting this attribute to 1, whereupon the near-end test parameters are expected
90// to be updated within 10 s, and the ONU should reset the attribute value to 0. The update request
91// flag is independent of any autonomous update process in the system. The update request attribute
92// must be prepared to accept another set after a period not to exceed 3 min, a period that starts
93// when the flag is set via the OMCI or by an autonomous process in the system. (R, W) (optional)
94// (1 byte)
95//
96// Update Request Flag For Far_End Test Parameters
97// Update request flag for far-end test parameters: The UPDATE-TEST-FE attribute forces an update
98// of all far-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update is
99// triggered by setting this attribute to 1, whereupon the far-end test parameters are expected to
100// be updated within 10 s, and the ONU should reset the attribute value to 0. The update request
101// flag is independent of any autonomous update process in the system. The update request attribute
102// must be prepared to accept another set after a period not to exceed 3 min, a period that starts
103// when the flag is set via the OMCI or by an autonomous process in the system. (R, W) (optional)
104// (1 byte)
105//
106// Inm Inter Arrival Time Offset Upstream
107// INM inter-arrival time offset upstream: INMIATOus is the inter-arrival time (IAT) offset that
108// the xTU-C receiver uses to determine in which bin of the IAT histogram the IAT is reported.
109// Valid values for INMIATO range from 3 to 511 discrete multi-tone (DMT) symbols in steps of 1 DMT
110// symbol. (R, W) (optional) (2 bytes)
111//
112// Inm Inter_Arrival Time Step Upstream
113// INM inter-arrival time step upstream: INMIATSus is the IAT step that the xTU-C receiver uses to
114// determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS range
115// from 0 to 7 in steps of 1. (R, W) (optional) (1 byte)
116//
117// Inm Cluster Continuation Value Upstream
118// INM cluster continuation value upstream: INMCCus is the cluster continuation value that the
119// xTU-C receiver uses in the cluster indication process described in the applicable
120// Recommendation. Valid values for INMCC range from 0 to 64 DMT symbols in steps of 1 DMT symbol.
121// (R, W) (optional) (1 byte)
122//
123// Inm Equivalent Inp Mode Upstream
124// INM equivalent INP mode upstream: INM_INPEQ_MODEus is the INM equivalent INP mode that the xTU-C
125// receiver uses in the computation of the equivalent INP, as defined in the applicable
126// Recommendation. Valid values for INM_INPEQ_MODE are 0..4. (R, W) (optional) (1 byte)
127//
128// Inm Inter Arrival Time Offset Downstream
129// INM inter-arrival time offset downstream: INMIATOds is the IAT offset that the xTU-R receiver
130// uses to determine in which bin of the IAT histogram the IAT is reported. Valid values for
131// INMIATO range from 3 to 511 DMT symbols in steps of 1 DMT symbol. (R, W) (optional) (2 bytes)
132//
133// Inm Inter_Arrival Time Step Downstream
134// INM inter-arrival time step downstream: INMIATSds is the IAT step that the xTU-R receiver uses
135// to determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS
136// range from 0 to 7 in steps of 1. (R, W) (optional) (1 byte)
137//
138// Inm Cluster Continuation Value Downstream
139// INM cluster continuation value downstream: INMCCds is the cluster continuation value that the
140// xTU-R receiver uses in the cluster indication process described in the applicable
141// Recommendation. Valid values for INMCC range from 0 to 64 DMT symbols in steps of 1 DMT symbol.
142// (R, W) (optional) (1 byte)
143//
144// Inm Equivalent Inp Mode Downstream
145// INM equivalent INP mode downstream: INM_INPEQ_MODEds is the INM equivalent INP mode that the
146// xTU-R receiver uses in the computation of the equivalent INP, as defined in the applicable
147// Recommendation. Valid values for INM_INPEQ_MODE are 0..4. (R, W) (optional) (1 byte)
148//
149type XdslLineConfigurationProfilePart3 struct {
150 ManagedEntityDefinition
151 Attributes AttributeValueMap
152}
153
154func init() {
155 xdsllineconfigurationprofilepart3BME = &ManagedEntityDefinition{
156 Name: "XdslLineConfigurationProfilePart3",
157 ClassID: 106,
158 MessageTypes: mapset.NewSetWith(
159 Create,
160 Delete,
161 Get,
162 Set,
163 ),
164 AllowedAttributeMask: 0XFFFF,
165 AttributeDefinitions: AttributeDefinitionMap{
166 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
167 1: ByteField("LoopDiagnosticsModeForcedLdsf", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
168 2: ByteField("AutomodeColdStartForced", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
169 3: ByteField("L2Atpr", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
170 4: ByteField("L2Atprt", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 4),
171 5: ByteField("ForceInpDownstream", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5),
172 6: ByteField("ForceInpUpstream", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 6),
173 7: ByteField("UpdateRequestFlagForNearEndTestParameters", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 7),
174 8: ByteField("UpdateRequestFlagForFarEndTestParameters", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 8),
175 9: Uint16Field("InmInterArrivalTimeOffsetUpstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 9),
176 10: ByteField("InmInterArrivalTimeStepUpstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 10),
177 11: ByteField("InmClusterContinuationValueUpstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 11),
178 12: ByteField("InmEquivalentInpModeUpstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 12),
179 13: Uint16Field("InmInterArrivalTimeOffsetDownstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 13),
180 14: ByteField("InmInterArrivalTimeStepDownstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 14),
181 15: ByteField("InmClusterContinuationValueDownstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 15),
182 16: ByteField("InmEquivalentInpModeDownstream", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 16),
183 },
184 }
185}
186
187// NewXdslLineConfigurationProfilePart3 (class ID 106 creates the basic
188// Managed Entity definition that is used to validate an ME of this type that
189// is received from the wire, about to be sent on the wire.
190func NewXdslLineConfigurationProfilePart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
191 return NewManagedEntity(xdsllineconfigurationprofilepart3BME, params...)
192}