blob: 20a69a944215a9ce0efacbe75905a4abf5e4a2c9 [file] [log] [blame]
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
* Copyright 2020-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
// XdslLineConfigurationProfilePart3ClassID is the 16-bit ID for the OMCI
// Managed entity xDSL line configuration profile part 3
const XdslLineConfigurationProfilePart3ClassID = ClassID(106) // 0x006a
var xdsllineconfigurationprofilepart3BME *ManagedEntityDefinition
// XdslLineConfigurationProfilePart3 (Class ID: #106 / 0x006a)
// The overall xDSL line configuration profile is modelled in several parts, all of which are
// associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single
// pointer, which refers to the entire set of line configuration profile parts).
//
// Relationships
// An instance of this ME may be associated with zero or more instances of an xDSL UNI.
//
// Attributes
// Managed Entity Id
// This attribute uniquely identifies each instance of this ME. All xDSL and VDSL2 line
// configuration profiles and extensions that pertain to a given PPTP xDSL UNI must share a common
// ME ID. (R, setbycreate) (mandatory) (2-bytes)
//
// Loop Diagnostics Mode Forced Ldsf
// Loop diagnostics mode forced (LDSF): This configuration parameter forces the line into loop
// diagnostic mode via the xTU-C. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and
// [ITUT-G.992.5]. It is defined as follows.
//
// 0 Inhibits the xTU-C from performing loop diagnostic mode procedures on the line. Loop
// diagnostic mode procedures may still be initiated by the xTU-R.
//
// 1 Forces the xTU-C to perform loop diagnostics procedures.
//
// Only while the line power management state is L3 can the line be forced into loop diagnostic
// mode. When loop diagnostic procedures complete successfully, the ONU resets this attribute to 0.
// The line remains in the L3 idle state. The loop diagnostics data are available at least until
// the line is forced to the L0 state. As long as loop diagnostic procedures have not completed
// successfully, attempts are made to do so, until the loop diagnostic mode is no longer forced on
// the line through this configuration parameter. If loop diagnostic procedures cannot be completed
// successfully after a vendordiscretionary number of retries or within a vendor-discretionary
// timeout, then an initialization failure occurs. (R,-W, setbycreate) (mandatory) (1-byte)
//
// Automode Cold Start Forced
// This attribute is defined to improve testing of the performance of xTUs supporting automode.
// Valid values are 0 and 1. A change in value of this attribute indicates a change in loop
// conditions applied to the devices under test. The xTUs reset any historical information used for
// automode, for shortening an ITU-T G.994.1 handshake, or for shortening the initialization
// procedure.
//
// Automode is defined as the case where multiple operation modes are enabled in xTSE (Table
// 9.7.12-1) and where the selection of the operation mode to be used for transmission depends, not
// only on the common capabilities of both xTUs (as exchanged in [ITU-T G.994.1]), but also on
// achievable data rates under given loop conditions. (R,-W, setbycreate) (mandatory if automode is
// supported) (1-byte)
//
// L2 Atpr
// L2ATPR: This parameter specifies the maximum aggregate transmit power reduction that can be
// performed in the L2 request (i.e., at the transition of L0 to L2 state) or through a single
// power trim in the L2 state. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and
// [ITUT-G.992.5]. This attribute ranges from 0 (0-dB) dB to 31 (31-dB). (R, W, setbycreate)
// (mandatory) (1 byte)
//
// L2 Atprt
// L2ATPRT: This parameter specifies the total maximum aggregate transmit power reduction (in
// decibels) that can be performed in an L2 state. This is the sum of all reductions of L2 requests
// (i.e., at transitions from L0 to L2 state) and power trims. This attribute ranges from 0 (0 dB)
// dB to 31 (31 dB). (R, W, setbycreate) (mandatory) (1 byte)
//
// Force Inp Downstream
// When set to 1, the FORCEINPds attribute forces the framer settings of all downstream bearer
// channels to be selected such that the impulse noise protection (INP) computed according to the
// formula specified in the relevant Recommendation is greater than or equal to the minimal INP
// requirement. The default value 0 disables this function. (R, W) (mandatory for [ITU-T G.993.2],
// optional for other Recommendations that support it) (1 byte)
//
// Force Inp Upstream
// When set to 1, the FORCEINPus attribute forces the framer settings of all upstream bearer
// channels to be selected such that the INP computed according to the formula specified in the
// relevant Recommendation is greater than or equal to the minimal INP requirement. The default
// value 0 disables this function. (R, W) (mandatory for [ITU-T G.993.2], optional for other
// Recommendations that support it) (1 byte)
//
// Update Request Flag For Near_End Test Parameters
// Update request flag for near-end test parameters: The UPDATE-TEST-NE attribute forces an update
// of all near-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update
// is triggered by setting this attribute to 1, whereupon the near-end test parameters are expected
// to be updated within 10-s, and the ONU should reset the attribute value to 0. The update request
// flag is independent of any autonomous update process in the system. The update request attribute
// must be prepared to accept another set after a period not to exceed 3-min, a period that starts
// when the flag is set via the OMCI or by an autonomous process in the system. (R,-W) (optional)
// (1-byte)
//
// Update Request Flag For Far_End Test Parameters
// Update request flag for far-end test parameters: The UPDATE-TEST-FE attribute forces an update
// of all far-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update is
// triggered by setting this attribute to 1, whereupon the far-end test parameters are expected to
// be updated within 10-s, and the ONU should reset the attribute value to 0. The update request
// flag is independent of any autonomous update process in the system. The update request attribute
// must be prepared to accept another set after a period not to exceed 3-min, a period that starts
// when the flag is set via the OMCI or by an autonomous process in the system. (R,-W) (optional)
// (1-byte)
//
// The following eight attributes configure the impulse noise monitoring (INM) function, whose
// results are available via the xDSL impulse noise monitor PM history data ME. The downstream
// attributes are applicable to [ITUT G.993.2], [ITUT G.992.3] and [ITUT G.992.5]. Only [ITUT
// G.993.2] supports the upstream attributes.
//
// Inm Inter Arrival Time Offset Upstream
// INM inter-arrival time offset upstream: INMIATOus is the inter-arrival time (IAT) offset that
// the xTU-C receiver uses to determine in which bin of the IAT histogram the IAT is reported.
// Valid values for INMIATO range from 3 to 511 discrete multi-tone (DMT) symbols in steps of 1 DMT
// symbol. (R,-W) (optional) (2-bytes)
//
// Inm Inter_Arrival Time Step Upstream
// INM inter-arrival time step upstream: INMIATSus is the IAT step that the xTU-C receiver uses to
// determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS range
// from 0 to 7 in steps of 1. (R,-W) (optional) (1-byte)
//
// Inm Cluster Continuation Value Upstream
// INMCCus is the cluster continuation value that the xTU-C receiver uses in the cluster indication
// process described in the applicable Recommendation. Valid values for INMCC range from 0 to 64
// DMT symbols in steps of 1 DMT symbol. (R,-W) (optional) (1-byte)
//
// Inm Equivalent Inp Mode Upstream
// INM_INPEQ_MODEus is the INM equivalent INP mode that the xTU-C receiver uses in the computation
// of the equivalent INP, as defined in the applicable Recommendation. Valid values for
// INM_INPEQ_MODE are 0..4. (R,-W) (optional) (1-byte)
//
// Inm Inter Arrival Time Offset Downstream
// INM inter-arrival time offset downstream: INMIATOds is the IAT offset that the xTU-R receiver
// uses to determine in which bin of the IAT histogram the IAT is reported. Valid values for
// INMIATO range from 3 to 511 DMT symbols in steps of 1 DMT symbol. (R,-W) (optional) (2-bytes)
//
// Inm Inter_Arrival Time Step Downstream
// INM inter-arrival time step downstream: INMIATSds is the IAT step that the xTU-R receiver uses
// to determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS
// range from 0 to 7 in steps of 1. (R,-W) (optional) (1-byte)
//
// Inm Cluster Continuation Value Downstream
// INMCCds is the cluster continuation value that the xTU-R receiver uses in the cluster indication
// process described in the applicable Recommendation. Valid values for INMCC range from 0 to 64
// DMT symbols in steps of 1 DMT symbol. (R,-W) (optional) (1-byte)
//
// Inm Equivalent Inp Mode Downstream
// INM_INPEQ_MODEds is the INM equivalent INP mode that the xTU-R receiver uses in the computation
// of the equivalent INP, as defined in the applicable Recommendation. Valid values for
// INM_INPEQ_MODE are 0..4. (R,-W) (optional) (1-byte)
//
type XdslLineConfigurationProfilePart3 struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
// Attribute name constants
const XdslLineConfigurationProfilePart3_LoopDiagnosticsModeForcedLdsf = "LoopDiagnosticsModeForcedLdsf"
const XdslLineConfigurationProfilePart3_AutomodeColdStartForced = "AutomodeColdStartForced"
const XdslLineConfigurationProfilePart3_L2Atpr = "L2Atpr"
const XdslLineConfigurationProfilePart3_L2Atprt = "L2Atprt"
const XdslLineConfigurationProfilePart3_ForceInpDownstream = "ForceInpDownstream"
const XdslLineConfigurationProfilePart3_ForceInpUpstream = "ForceInpUpstream"
const XdslLineConfigurationProfilePart3_UpdateRequestFlagForNearEndTestParameters = "UpdateRequestFlagForNearEndTestParameters"
const XdslLineConfigurationProfilePart3_UpdateRequestFlagForFarEndTestParameters = "UpdateRequestFlagForFarEndTestParameters"
const XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetUpstream = "InmInterArrivalTimeOffsetUpstream"
const XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepUpstream = "InmInterArrivalTimeStepUpstream"
const XdslLineConfigurationProfilePart3_InmClusterContinuationValueUpstream = "InmClusterContinuationValueUpstream"
const XdslLineConfigurationProfilePart3_InmEquivalentInpModeUpstream = "InmEquivalentInpModeUpstream"
const XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetDownstream = "InmInterArrivalTimeOffsetDownstream"
const XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepDownstream = "InmInterArrivalTimeStepDownstream"
const XdslLineConfigurationProfilePart3_InmClusterContinuationValueDownstream = "InmClusterContinuationValueDownstream"
const XdslLineConfigurationProfilePart3_InmEquivalentInpModeDownstream = "InmEquivalentInpModeDownstream"
func init() {
xdsllineconfigurationprofilepart3BME = &ManagedEntityDefinition{
Name: "XdslLineConfigurationProfilePart3",
ClassID: XdslLineConfigurationProfilePart3ClassID,
MessageTypes: mapset.NewSetWith(
Create,
Delete,
Get,
Set,
),
AllowedAttributeMask: 0xffff,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
1: ByteField(XdslLineConfigurationProfilePart3_LoopDiagnosticsModeForcedLdsf, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
2: ByteField(XdslLineConfigurationProfilePart3_AutomodeColdStartForced, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
3: ByteField(XdslLineConfigurationProfilePart3_L2Atpr, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
4: ByteField(XdslLineConfigurationProfilePart3_L2Atprt, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
5: ByteField(XdslLineConfigurationProfilePart3_ForceInpDownstream, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
6: ByteField(XdslLineConfigurationProfilePart3_ForceInpUpstream, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
7: ByteField(XdslLineConfigurationProfilePart3_UpdateRequestFlagForNearEndTestParameters, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), true, true, false, 7),
8: ByteField(XdslLineConfigurationProfilePart3_UpdateRequestFlagForFarEndTestParameters, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), true, true, false, 8),
9: Uint16Field(XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetUpstream, UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, true, false, 9),
10: ByteField(XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepUpstream, UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
11: ByteField(XdslLineConfigurationProfilePart3_InmClusterContinuationValueUpstream, UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
12: ByteField(XdslLineConfigurationProfilePart3_InmEquivalentInpModeUpstream, UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
13: Uint16Field(XdslLineConfigurationProfilePart3_InmInterArrivalTimeOffsetDownstream, UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
14: ByteField(XdslLineConfigurationProfilePart3_InmInterArrivalTimeStepDownstream, UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read, Write), false, true, false, 14),
15: ByteField(XdslLineConfigurationProfilePart3_InmClusterContinuationValueDownstream, UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read, Write), false, true, false, 15),
16: ByteField(XdslLineConfigurationProfilePart3_InmEquivalentInpModeDownstream, UnsignedIntegerAttributeType, 0x0001, 0, mapset.NewSetWith(Read, Write), false, true, false, 16),
},
Access: CreatedByOlt,
Support: UnknownSupport,
}
}
// NewXdslLineConfigurationProfilePart3 (class ID 106) creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from or transmitted to the OMCC.
func NewXdslLineConfigurationProfilePart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(*xdsllineconfigurationprofilepart3BME, params...)
}