blob: bd5233209346a159466f513f1ef2e1e30314bec0 [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * 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
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * 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 */
David K. Bainbridged80007b2021-04-12 12:22:29 +000017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * 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 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// FastChannelConfigurationProfileClassID is the 16-bit ID for the OMCI
29// Managed entity FAST channel configuration profile
mpagenko836a1fd2021-11-01 16:12:42 +000030const FastChannelConfigurationProfileClassID = ClassID(432) // 0x01b0
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var fastchannelconfigurationprofileBME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// FastChannelConfigurationProfile (Class ID: #432 / 0x01b0)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME contains the FAST channel configuration profile for an xDSL UNI. An instance of this ME
36// is created and deleted by the OLT.
37//
38// Relationships
39// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
40// 1.
41//
42// Attributes
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000043// Managed Entity Id
44// This attribute uniquely identifies each instance of this ME. The value 0 is reserved. (R, set-
45// by-create) (mandatory) (2 bytes)
46//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000047// Maximum Net Data Rate Maxndr
48// Maximum net data rate (MAXNDR): This attribute specifies the value of the maximum net data rate.
49// See clause 11.4.2.2 of [ITU-T G.9701]. Valid values range from 0 (0-kbit/s) to 4294967295
50// (2^32-1-kbit/s). See clause 7.2.1.1 of [ITUT-G.997.2]. (R, W) (mandatory) (4 bytes)
51//
52// Minimum Expected Throughput Minetr
53// Minimum expected throughput (MINETR): This attribute specifies the value of the minimum expected
54// throughput. See clause 11.4.2.1 of [ITU-T G.9701]. Valid values range from 0 (0-kbit/s) to
55// 4294967295 (2^32-1-kbit/s). See clause-7.2.1.2 of [ITU-T G.997.2]. (R, W) (mandatory) (4 bytes)
56//
57// Maximum Gamma Data Rate Maxgdr
58// Maximum gamma data rate (MAXGDR): This attribute specifies the maximum value of the GDR (see
59// clause 7.11.1.3). The GDR shall not exceed MAXGDR at the start of showtime and during showtime.
60// Valid values range from 0 (0-kbit/s) to 4294967295 (2^32-1-kbit/s). See clause 7.2.1.3 of [ITU-T
61// G.997.2]. (R, W) (mandatory) (4 bytes)
62//
63// Minimum Gamma Data Rate Mingdr
64// Minimum gamma data rate (MINGDR): This attribute specifies the minimum value of the GDR (see
65// clause 7.11.1.3). The GDR may be lower than MINGDR. If the GDR is lower than MINGDR at
66// initialization or when GDR becomes lower than MINGDR during showtime, a TCA occurs. Valid values
67// range from 0 (0-kbit/s) to 4294967295 (2^32-1-kbit/s). See clause 7.2.1.4 of [ITU-T G.997.2].
68// (R, W) (mandatory) (4 bytes)
69//
70// Maximum Delay Delaymax
71// Maximum delay (DELAYMAX): This attribute specifies the maximum allowed delay for retransmission.
72// See clause 9.8 of [ITU-T G.9701]. The ITUT-G.9701 control parameter delay_max is set to the same
73// value as the maximum delay. See clause 11.4.2.3 of [ITU-T G.9701]. Valid values range from 4
74// (1-ms) to 252 (63-ms) in steps of 0.25-ms. See clause 7.2.2.1 of [ITUT-G.997.2]. (R, W)
75// (mandatory) (4 bytes)
76//
77// Minimum Impulse Noise Protection Against Shine Inpmin_Shine
78// Minimum impulse noise protection against SHINE (INPMIN_SHINE): This attribute specifies the
79// minimum INP against SHINE. See clause 9.8 of [ITU-T G.9701]. The ITU-T G.9701 control parameter
80// INP_min_shine is set to the same value as the minimum INP against SHINE. See clause 11.4.2.4 of
81// [ITU-T G.9701]. Valid values range from 0 to 520 (520 symbol periods). See clause 7.2.2.2 of
82// [ITUT G.997.2]. (R, W) (mandatory) (2-bytes)
83//
84// Shine Ratio Shineratio
85// SHINE ratio (SHINERATIO): This attribute specifies the SHINE ratio that is used in the
86// definition of the expected throughput rate (ETR). See clause 9.8 of [ITUT-G.9701]. The ITU-T
87// G.9701 control parameter SHINEratio is set to the same value as the SHINE ratio. See clause
88// 11.4.2.5 of [ITU-T G.9701]. The value is expressed in units of 0.001, Valid values range from 0
89// to 100 (0.01) in steps of 0.001. See clause 7.2.2.3 of [ITU-T G.997.2]. (R, W) (mandatory)
90// (1-byte)
91//
92// Minimum Impulse Noise Protection Against Rein Inpmin_Rein
93// Minimum impulse noise protection against REIN (INPMIN_REIN): This attribute specifies the
94// minimum INP against REIN. See clause 9.8 of [ITU-T G.9701]. The ITU-T G.9701 control parameter
95// INP_min_rein is set to the same value as the minimum INP against REIN. See clause 11.4.2.6 of
96// [ITU-T G.9701]. Valid values range from 0 to 63 (63-symbol periods). See clause 7.2.2.4 of
97// [ITU-T G.997.2]. (R, W) (mandatory) (1 byte)
98//
99// Rein Inter_Arrival Time Iat_Rein
mpagenko836a1fd2021-11-01 16:12:42 +0000100// REIN Inter-arrival time (IAT_REIN): This attribute specifies the REIN IAT. See clause 9.8 of
101// [ITU-T G.9701]. The ITU-T G.9701 control parameter iat_rein_flag is set to the same value as the
102// REIN IAT. See clause 11.4.2.7 of [ITU-T G.9701].
103//
104// The REIN IAT is specified via the following values:
105//
106// 1 100 Hz;
107//
108// 2 120 Hz;
109//
110// 3 360 Hz.
111//
112// See clause 7.2.2.5 of [ITU-T G.997.2].
113//
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000114// (R, W) (mandatory) (1 byte)
115//
116// Minimum Reed_Solomon Rfec_Nfec Ratio Rnratio
117// Minimum Reed-Solomon RFEC/NFEC ratio (RNRATIO): This attribute specifies the minimal required
118// ratio, RFEC/NFEC, of Reed-Solomon code parameters. The ITU-T G.9701 control parameter rnratio is
119// set to the same value as the minimum Reed-Solomon RFEC/NFEC ratio. See clause 11.4.2.8 of
120// [ITUT-G.9701]. The value is expressed in units of 1/32, Valid values range from 0 to 8 (1/4).
121// See clause 7.2.2.6 of [ITU-T G.997.2]. (R, W) (mandatory) (1 byte)
122//
123// Rtx_Tc Testmode Rtx_Testmode
124// RTX-TC testmode (RTX_TESTMODE): This Boolean attribute specifies whether the retransmission test
125// mode defined in clause 9.8.3.1.2 [ITU-T G.9701] is enabled-(true) or disabled (disabled). See
126// clause 7.2.2.7 of [ITU-T G.997.2]. (R,-W) (optional) (1 byte)
127//
128type FastChannelConfigurationProfile struct {
129 ManagedEntityDefinition
130 Attributes AttributeValueMap
131}
132
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000133// Attribute name constants
134
135const FastChannelConfigurationProfile_MaximumNetDataRateMaxndr = "MaximumNetDataRateMaxndr"
136const FastChannelConfigurationProfile_MinimumExpectedThroughputMinetr = "MinimumExpectedThroughputMinetr"
137const FastChannelConfigurationProfile_MaximumGammaDataRateMaxgdr = "MaximumGammaDataRateMaxgdr"
138const FastChannelConfigurationProfile_MinimumGammaDataRateMingdr = "MinimumGammaDataRateMingdr"
139const FastChannelConfigurationProfile_MaximumDelayDelaymax = "MaximumDelayDelaymax"
140const FastChannelConfigurationProfile_MinimumImpulseNoiseProtectionAgainstShineInpminShine = "MinimumImpulseNoiseProtectionAgainstShineInpminShine"
141const FastChannelConfigurationProfile_ShineRatioShineratio = "ShineRatioShineratio"
142const FastChannelConfigurationProfile_MinimumImpulseNoiseProtectionAgainstReinInpminRein = "MinimumImpulseNoiseProtectionAgainstReinInpminRein"
143const FastChannelConfigurationProfile_ReinInterArrivalTimeIatRein = "ReinInterArrivalTimeIatRein"
144const FastChannelConfigurationProfile_MinimumReedSolomonRfecNfecRatioRnratio = "MinimumReedSolomonRfecNfecRatioRnratio"
145const FastChannelConfigurationProfile_RtxTcTestmodeRtxTestmode = "RtxTcTestmodeRtxTestmode"
146
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000147func init() {
148 fastchannelconfigurationprofileBME = &ManagedEntityDefinition{
149 Name: "FastChannelConfigurationProfile",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000150 ClassID: FastChannelConfigurationProfileClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000151 MessageTypes: mapset.NewSetWith(
152 Create,
153 Delete,
154 Get,
155 Set,
156 ),
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000157 AllowedAttributeMask: 0xffe0,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000158 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000159 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
160 1: Uint32Field(FastChannelConfigurationProfile_MaximumNetDataRateMaxndr, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
161 2: Uint32Field(FastChannelConfigurationProfile_MinimumExpectedThroughputMinetr, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
162 3: Uint32Field(FastChannelConfigurationProfile_MaximumGammaDataRateMaxgdr, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
163 4: Uint32Field(FastChannelConfigurationProfile_MinimumGammaDataRateMingdr, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
164 5: Uint32Field(FastChannelConfigurationProfile_MaximumDelayDelaymax, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
165 6: Uint16Field(FastChannelConfigurationProfile_MinimumImpulseNoiseProtectionAgainstShineInpminShine, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
166 7: ByteField(FastChannelConfigurationProfile_ShineRatioShineratio, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
167 8: ByteField(FastChannelConfigurationProfile_MinimumImpulseNoiseProtectionAgainstReinInpminRein, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
168 9: ByteField(FastChannelConfigurationProfile_ReinInterArrivalTimeIatRein, UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
169 10: ByteField(FastChannelConfigurationProfile_MinimumReedSolomonRfecNfecRatioRnratio, UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, false, false, 10),
170 11: ByteField(FastChannelConfigurationProfile_RtxTcTestmodeRtxTestmode, UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000171 },
172 Access: CreatedByOlt,
173 Support: UnknownSupport,
174 }
175}
176
177// NewFastChannelConfigurationProfile (class ID 432) creates the basic
178// Managed Entity definition that is used to validate an ME of this type that
179// is received from or transmitted to the OMCC.
180func NewFastChannelConfigurationProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
181 return NewManagedEntity(*fastchannelconfigurationprofileBME, params...)
182}