blob: d4e780ba970c44c86c0d2782d9d1723fc79863e5 [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// Vdsl2LineConfigurationExtensions2ClassID is the 16-bit ID for the OMCI
26// Managed entity VDSL2 line configuration extensions 2
27const Vdsl2LineConfigurationExtensions2ClassID ClassID = ClassID(323)
28
29var vdsl2lineconfigurationextensions2BME *ManagedEntityDefinition
30
31// Vdsl2LineConfigurationExtensions2 (class ID #323)
32// This ME extends the xDSL line configuration MEs. The ME name was chosen because its attributes
33// were initially unique to ITU-T G.993.2 VDSL2. Due to continuing standards development, two of
34// the attributes (FEXT and NEXT TXREFVNds) are also used in [ITUT-G.992.3] and [ITUT-G.992.5].
35// This ME therefore pertains to the latter Recommendations as well as to [ITU-T-G.993.2].
36//
37// The attributes of this ME are further defined in [ITU-T G.997.1].
38//
39// An instance of this ME is created and deleted by the OLT.
40//
41// Relationships
42// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
43// 1.//// The overall xDSL line configuration profile is modelled in several parts, all of which are
44// associated together through a common ME ID. (The client PPTP xDSL UNI part 1 has a single
45// pointer, which refers to the entire set of line configuration parts.)
46//
47// Attributes
48// Managed Entity Id
49// Managed entity ID: This attribute uniquely identifies each instance of this ME. All xDSL and
50// VDSL2 line configuration profiles and extensions that pertain to a given PPTP xDSL must share a
51// common ME ID. (R, setbycreate) (mandatory) (2-bytes)
52//
53// Sos Time Downstream
54// SOS time downstream: The SOS-TIME-ds attribute is used in the specification of receiver
55// initiated SOS (see clause 13.4.3 of [ITUT G.993.2]). If the attribute value is not zero, the
56// standard SOS triggering criteria are enabled, and the value specifies the duration of the window
57// used in the standard SOS triggering criteria in the downstream direction. The special value zero
58// indicates that the standard SOS triggering criteria are disabled, i.e., vendor-discretionary
59// values may be used instead of the values configured in the MIB for the following parameters:
60// SOS-NTONES-ds, SOS-CRC-ds, SOS-TIME-ds. The valid range of non-zero values is from 1..255,
61// specifying 64-ms to 16320 ms in steps of 64-ms. (R,-W, setbycreate) (optional) (1-byte)
62//
63// Sos Time Upstream
64// SOS time upstream: The SOS-TIME-us attribute is used in the specification of receiver initiated
65// SOS (see clause 13.4.3 of [ITUT G.993.2]). If the attribute value is not zero, the standard SOS
66// triggering criteria are enabled, and the value specifies the duration of the window used in the
67// standard SOS triggering criteria in the upstream direction. The special value zero indicates
68// that the standard SOS triggering criteria are disabled, i.e., vendor-discretionary values may be
69// used instead of the values configured in the MIB for the following parameters: SOS-NTONES-us,
70// SOS-CRC-us, SOS-TIME-us. The valid range of non-zero values is from 1..255, specifying 64-ms to
71// 16320-ms in steps of 64-ms. (R,-W, setbycreate) (optional) (1-byte)
72//
73// Sos Degraded Tones Threshold Downstream
74// SOS degraded tones threshold downstream: The SOS-NTONES-ds attribute is the minimum percentage
75// of tones in the downstream medley set that must be degraded in order to arm the first
76// subcondition of the standard SOS triggering criteria in the downstream direction. The valid
77// range of values is from 1 to 100% in steps of 1. Use of the special value 0 is described in
78// clause 13.4.3.2 of [ITUT G.993.2]. (R,-W, setbycreate) (optional) (1-byte)
79//
80// Sos Degraded Tones Threshold Upstream
81// SOS degraded tones threshold upstream: The SOS-NTONES-us attribute is the minimum percentage of
82// tones in the upstream medley set that must be degraded in order to arm the first subcondition of
83// the standard SOS triggering criteria in the upstream direction. The valid range of values is
84// from 1 to 100% in steps of 1. Use of the special value 0 is described in clause 13.4.3.2 of
85// [ITUT-G.993.2]. (R,-W, setbycreate) (optional) (1-byte)
86//
87// Sos Crc Threshold Downstream
88// SOS CRC threshold downstream: The SOS-CRC-ds attribute is the minimum number of normalized CRC
89// anomalies received in SOS-TIME-ds seconds in order to arm the second sub-condition of the
90// standard SOS triggering criteria (see clause 13.4.3.2 of [ITU T G.993.2]) in the downstream
91// direction. The valid range of SOS-CRC values is 0.02 to (216-1)*0.02, in steps of 0.02. The
92// value-0 specifies that the ONU uses its internal default. (R, W, set-by-create) (optional) (2
93// bytes)
94//
95// Sos Crc Threshold Upstream
96// SOS CRC threshold upstream: The SOS-CRC-us attribute is the minimum number of normalized CRC
97// anomalies received in SOS-TIME-us seconds in order to arm the second sub-condition of the
98// standard SOS triggering criteria (see clause 13.4.3.2 of [ITU T G.993.2]) in the upstream
99// direction. The valid range of SOS-CRC values is 0.02 to (216-1)*0.02, in steps of 0.02. The
100// value-0 specifies that the ONU uses its internal default. (R, W, set-by-create) (optional) (2
101// bytes)
102//
103// Max Sos Downstream
104// MAX SOS downstream: The MAX-SOS-ds attribute is used in deactivation. If the number of
105// successful SOS procedures in the downstream direction performed within a 120-s interval exceeds
106// MAX-SOS-ds, the modem goes to state L3. See clause 12.1.4 of [ITUT G.993.2] for details. The
107// valid range of values is 1 to 15, with the special value 0 as described in clause 12.1 of [ITUT
108// G.993.2]. (R,-W, setbycreate) (optional) (1-byte)
109//
110// Max Sos Upstream
111// MAX SOS upstream: The MAX-SOS-us attribute is used in deactivation. If the number of successful
112// SOS procedures in the upstream direction performed within a 120-s interval exceeds MAX-SOS-us,
113// the modem goes to state L3. See clause 12.1.4 of [ITUT G.993.2] for details. The valid range of
114// values is 1 to 15, with the special value 0 as described in clause 12.1 of [ITUT G.993.2].
115// (R,-W, setbycreate) (optional) (1-byte)
116//
117// Snr Max Offset Downstream
118// SNR max offset downstream: The SNRMOFFSET-ROC-ds attribute is the SNR margin offset for the ROC
119// in the downstream direction. The attribute is used in the specification of the channel
120// initialization policy (see clause 12.3.7.1 of [ITUT G.993.2]). The valid range of SNR margin
121// offset values is from 0..31-dB in 0.1-dB steps. (R,-W, setbycreate) (optional) (2-bytes)
122//
123// Snr Max Offset Upstream
124// SNR max offset upstream: The SNRMOFFSET-ROC-us attribute is the SNR margin offset for the ROC in
125// the upstream direction. The attribute is used in the specification of the channel initialization
126// policy (see clause-12.3.7.1 of [ITUT G.993.2]). The valid range of SNR margin offset values is
127// from 0..31-dB in 0.1-dB steps. (R,-W, setbycreate) (optional) (2-bytes)
128//
129// Roc Minimum Impulse Noise Protection Downstream
130// ROC minimum impulse noise protection downstream: The INPMIN-ROC-ds attribute specifies the
131// minimum INP to apply on the ROC in the downstream direction expressed in multiples of equivalent
132// 4k DMT, xDSL (DMT) symbol length. The minimum INP is an integer ranging from 0 to 8. (R,-W,
133// setbycreate) (optional) (1-byte)
134//
135// Roc Minimum Impulse Noise Protection Upstream
136// ROC minimum impulse noise protection upstream: The INPMIN-ROC-us attribute specifies the minimum
137// impulse noise protection to apply on the ROC in the upstream direction expressed in multiples of
138// equivalent 4k DMT symbol length. The minimum INP is an integer ranging from 0 to 8. (R,-W,
139// setbycreate) (optional) (1-byte)
140//
141// Fext Downstream Transmitter Referred Virtual Noise Table
142// FEXT downstream transmitter referred virtual noise table: The FEXT TXREFVNds attribute is the
143// downstream transmitter referred virtual noise specified for FEXTR duration in Annex C of [ITUT
144// G.992.3] (ADSL2) and Annex C of [ITUT G.992.5] (ADSL2plus). The syntax of this attribute is the
145// same as that of the TXREFVNds table attribute of the VDSL2 line configuration extensions ME.
146// (R,-W) (mandatory for Annex-C of [ITUT-G.992.3] and Annex-C of [ITUT-G.992.5]) (3-*-N bytes,
147// where N is the number of breakpoints)
148//
149// Next Downstream Transmitter Referred Virtual Noise Table
150// NEXT downstream transmitter referred virtual noise table: The NEXT TXREFVNds attribute is the
151// downstream transmitter referred virtual noise specified for NEXTR duration in Annex C of [ITUT
152// G.992.3] (ADSL2) and Annex C of [ITUT G.992.5] (ADSL2plus). The syntax of this attribute is the
153// same as that of the TXREFVNds table attribute of the VDSL2 line configuration extensions ME.
154// (R,-W) (mandatory for Annex-C of [ITUT-G.992.3] and Annex-C of [ITUT-G.992.5]) (3-*-N bytes,
155// where N is the number of breakpoints)
156//
157type Vdsl2LineConfigurationExtensions2 struct {
158 ManagedEntityDefinition
159 Attributes AttributeValueMap
160}
161
162func init() {
163 vdsl2lineconfigurationextensions2BME = &ManagedEntityDefinition{
164 Name: "Vdsl2LineConfigurationExtensions2",
165 ClassID: 323,
166 MessageTypes: mapset.NewSetWith(
167 Create,
168 Delete,
169 Get,
170 GetNext,
171 Set,
172 ),
173 AllowedAttributeMask: 0xfffc,
174 AttributeDefinitions: AttributeDefinitionMap{
175 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
176 1: ByteField("SosTimeDownstream", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 1),
177 2: ByteField("SosTimeUpstream", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 2),
178 3: ByteField("SosDegradedTonesThresholdDownstream", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 3),
179 4: ByteField("SosDegradedTonesThresholdUpstream", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 4),
180 5: Uint16Field("SosCrcThresholdDownstream", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 5),
181 6: Uint16Field("SosCrcThresholdUpstream", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 6),
182 7: ByteField("MaxSosDownstream", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 7),
183 8: ByteField("MaxSosUpstream", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 8),
184 9: Uint16Field("SnrMaxOffsetDownstream", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 9),
185 10: Uint16Field("SnrMaxOffsetUpstream", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 10),
186 11: ByteField("RocMinimumImpulseNoiseProtectionDownstream", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 11),
187 12: ByteField("RocMinimumImpulseNoiseProtectionUpstream", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, true, false, 12),
188 13: TableField("FextDownstreamTransmitterReferredVirtualNoiseTable", TableAttributeType, 0x0008, TableInfo{nil, 3}, mapset.NewSetWith(Read, Write), false, false, false, 13),
189 14: TableField("NextDownstreamTransmitterReferredVirtualNoiseTable", TableAttributeType, 0x0004, TableInfo{nil, 3}, mapset.NewSetWith(Read, Write), false, false, false, 14),
190 },
191 Access: CreatedByOlt,
192 Support: UnknownSupport,
193 }
194}
195
196// NewVdsl2LineConfigurationExtensions2 (class ID 323) creates the basic
197// Managed Entity definition that is used to validate an ME of this type that
198// is received from or transmitted to the OMCC.
199func NewVdsl2LineConfigurationExtensions2(params ...ParamData) (*ManagedEntity, OmciErrors) {
200 return NewManagedEntity(*vdsl2lineconfigurationextensions2BME, params...)
201}